/*
 * Oracle intuitif - page dédiée.
 */

.guidance-oracle-page {
  --go-ink: #15140e;
  --go-muted: #5d574b;
  --go-paper: #fffaf0;
  --go-cream: #f3ead6;
  --go-green: #143b2c;
  --go-leaf: #2d7a4f;
  --go-sage: #9bb088;
  --go-lime: #c8e23a;
  --go-rust: #a14a2a;
  --go-line: rgba(20, 59, 44, 0.16);
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(155, 176, 136, 0.24), transparent 380px),
    linear-gradient(90deg, rgba(200, 226, 58, 0.16), transparent 34%),
    var(--go-cream);
  color: var(--go-ink);
  position: relative;
  overflow: hidden;
}

.go-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.go-hero {
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--go-line);
  overflow: hidden;
}

.go-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.go-kicker,
.go-panel-label,
.go-card-position,
.go-reading-label {
  margin: 0;
  color: var(--go-leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.go-hero h1 {
  margin: 14px 0 0;
  color: var(--go-green);
  font-family: "Cormorant Garamond", serif;
  font-size: 74px;
  line-height: 0.96;
  letter-spacing: 0;
}

.go-lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--go-muted);
  font-size: 19px;
  line-height: 1.72;
}

.go-hero-actions,
.go-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--go-line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--go-green);
  font: 700 14px "Manrope", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.go-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 59, 44, 0.32);
  box-shadow: 0 16px 34px rgba(20, 59, 44, 0.14);
}

.go-btn--primary {
  background: var(--go-green);
  color: var(--go-paper);
  border-color: var(--go-green);
}

.go-btn[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.go-orbit {
  position: relative;
  height: 360px;
}

.go-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--go-green);
  color: var(--go-lime);
  transform: translate(-50%, -50%);
  box-shadow: 0 28px 60px rgba(20, 59, 44, 0.28);
}

.go-orbit-center iconify-icon {
  font-size: 64px;
}

.go-orbit-card {
  position: absolute;
  width: 150px;
  height: 210px;
  display: grid;
  place-items: end start;
  padding: 16px;
  border: 1px solid rgba(255, 250, 240, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.18), transparent),
    linear-gradient(135deg, #143b2c, #9bb088);
  color: var(--go-paper);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  box-shadow: 0 24px 52px rgba(20, 59, 44, 0.2);
  animation: go-float 5.4s ease-in-out infinite;
}

.go-orbit-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 250, 240, 0.38);
  border-radius: 6px;
}

.go-orbit-card--one {
  left: 4px;
  top: 62px;
  transform: rotate(-12deg);
}

.go-orbit-card--two {
  right: 12px;
  top: 24px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.18), transparent),
    linear-gradient(135deg, #a14a2a, #c8e23a);
  animation-delay: -1.6s;
}

.go-orbit-card--three {
  left: 104px;
  bottom: 6px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.18), transparent),
    linear-gradient(135deg, #1f5d3f, #dde7c8);
  animation-delay: -2.6s;
}

@keyframes go-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.go-workspace {
  padding: 48px 0 72px;
}

.go-content-note,
.go-panel,
.go-synthesis,
.go-reading,
.go-history,
.go-contact,
.go-disclaimer {
  border: 1px solid var(--go-line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.8);
  box-shadow: 0 20px 46px rgba(20, 59, 44, 0.08);
}

.go-content-note {
  padding: 22px;
  margin-bottom: 22px;
  color: var(--go-muted);
  line-height: 1.7;
}

.go-board {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 20px;
}

.go-panel {
  padding: 20px;
}

.go-panel--setup {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 128px;
}

.go-question-label {
  display: block;
  margin-top: 8px;
  color: var(--go-green);
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1;
}

.go-help {
  margin: 8px 0 0;
  color: var(--go-muted);
  font-size: 13px;
  line-height: 1.5;
}

.go-question-label + textarea {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--go-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--go-ink);
  font: inherit;
  line-height: 1.55;
}

.go-question-label + textarea:focus {
  outline: 2px solid rgba(200, 226, 58, 0.72);
}

.go-spread-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.go-spread-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--go-line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.64);
  color: var(--go-green);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.go-spread-btn:hover {
  transform: translateY(-1px);
}

.go-spread-btn[aria-pressed="true"] {
  background: var(--go-green);
  color: var(--go-paper);
}

.go-panel--cards {
  min-height: 516px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 59, 44, 0.95), rgba(45, 122, 79, 0.92)),
    #143b2c;
}

.go-ritual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  color: rgba(255, 250, 240, 0.84);
  font-size: 14px;
}

.go-ritual-dots {
  display: flex;
  gap: 5px;
}

.go-ritual-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(200, 226, 58, 0.35);
}

.go-ritual[data-state="shuffle"] .go-ritual-dots i,
.go-ritual[data-state="deal"] .go-ritual-dots i {
  animation: go-dot 780ms ease-in-out infinite;
}

.go-ritual-dots i:nth-child(2) { animation-delay: 120ms; }
.go-ritual-dots i:nth-child(3) { animation-delay: 240ms; }

@keyframes go-dot {
  0%, 100% { transform: translateY(0); background: rgba(200, 226, 58, 0.35); }
  50% { transform: translateY(-5px); background: rgba(200, 226, 58, 0.95); }
}

.go-deck {
  position: relative;
  width: min(420px, 100%);
  height: 116px;
  margin: 24px auto 8px;
}

.go-deck span {
  position: absolute;
  left: calc(50% - 34px);
  top: 14px;
  width: 68px;
  height: 94px;
  border-radius: 7px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  background:
    linear-gradient(135deg, rgba(200, 226, 58, 0.16), transparent),
    repeating-linear-gradient(45deg, rgba(255, 250, 240, 0.06) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, #0e241c, #2d7a4f);
  transform: translateX(calc((var(--i) - 7) * 14px)) rotate(var(--turn));
  transform-origin: 50% 120%;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.18);
}

.go-deck.is-shuffling span {
  animation: go-shuffle 760ms ease-in-out infinite;
  animation-delay: calc(var(--i) * 30ms);
}

@keyframes go-shuffle {
  0%, 100% { transform: translateX(calc((var(--i) - 7) * 14px)) translateY(0) rotate(var(--turn)); }
  35% { transform: translateX(calc((var(--i) - 7) * -10px)) translateY(-13px) rotate(calc(var(--turn) * -1)); }
  70% { transform: translateX(calc((var(--i) - 7) * 7px)) translateY(4px) rotate(var(--turn)); }
}

.go-cards {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 18px 0 4px;
}

.go-cards[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.go-cards[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.go-cards[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.go-cards[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.go-card-wrap {
  width: 100%;
  max-width: 164px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.go-cards.is-dealing .go-card-wrap {
  animation: go-deal 700ms cubic-bezier(0.18, 0.82, 0.26, 1) both;
  animation-delay: calc(var(--deal-index) * 100ms);
}

@keyframes go-deal {
  0% { opacity: 0; transform: translateY(-78px) scale(0.86) rotate(-8deg); }
  70% { opacity: 1; transform: translateY(8px) scale(1.02) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.go-card-position {
  min-height: 18px;
  color: rgba(255, 250, 240, 0.78);
  text-align: center;
}

.go-card {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 8;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 1200px;
  cursor: pointer;
}

.go-card-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 820ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.go-card.is-flipped .go-card-inner {
  transform: rotateY(180deg);
}

.go-card:not(.is-flipped):hover .go-card-inner {
  transform: translateY(-5px) rotate(-1deg);
}

.go-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 8px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.go-card-back {
  place-items: center;
  background:
    linear-gradient(135deg, rgba(200, 226, 58, 0.16), transparent),
    repeating-linear-gradient(45deg, rgba(255, 250, 240, 0.06) 0 1px, transparent 1px 10px),
    linear-gradient(135deg, #143b2c, #2d7a4f);
  color: var(--go-paper);
}

.go-card-back::after,
.go-card-front::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 6px;
}

.go-card-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 226, 58, 0.55);
  border-radius: 999px;
  color: var(--go-lime);
}

.go-card-mark iconify-icon {
  font-size: 40px;
}

.go-card-back-name {
  position: absolute;
  bottom: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
}

.go-card-front {
  transform: rotateY(180deg);
  grid-template-rows: 1fr auto auto;
  padding: 14px;
  color: var(--go-paper);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(6, 17, 12, 0.34) 0%, rgba(6, 17, 12, 0.48) 42%, rgba(6, 17, 12, 0.94) 100%),
    var(--card-image),
    var(--card-gradient, linear-gradient(135deg, #143b2c, #9bb088));
  background-size: cover;
  background-position: center;
}

.go-card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 250, 240, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(8, 20, 14, 0.34), rgba(8, 20, 14, 0.1) 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
}

.go-card-front > * {
  position: relative;
  z-index: 1;
}

.go-card-icon {
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: rgba(20, 59, 44, 0.68);
  color: #f6f0d8;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 250, 240, 0.24);
}

.go-card-icon iconify-icon {
  font-size: 36px;
}

.go-card-title {
  justify-self: stretch;
  padding: 10px 8px 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
  color: #fffaf0;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
}

.go-card-keyword {
  margin-top: 4px;
  color: #f8f3dc;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88);
}

.go-readings {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.go-synthesis,
.go-reading {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.go-synthesis.is-visible,
.go-reading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.go-synthesis {
  padding: 24px;
  background: var(--go-green);
  color: var(--go-paper);
}

.go-answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 250, 240, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.16), rgba(255, 250, 240, 0.04)),
    rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.go-answer-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.16);
  color: var(--go-lime);
}

.go-answer-icon iconify-icon {
  font-size: 30px;
}

.go-answer-label {
  margin: 0 0 4px;
  color: rgba(255, 250, 240, 0.68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.go-answer strong {
  display: block;
  margin-bottom: 4px;
  color: #fffaf0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.9;
}

.go-answer span:not(.go-answer-icon) {
  display: block;
  color: rgba(255, 250, 240, 0.86);
  font-size: 15px;
  line-height: 1.55;
}

.go-answer--yes .go-answer-icon {
  color: #d9ff7a;
}

.go-answer--no .go-answer-icon {
  color: #ffb38a;
}

.go-answer--wait .go-answer-icon,
.go-answer--mixed .go-answer-icon {
  color: #f7d88a;
}

.go-synthesis h2 {
  margin: 8px 0 12px;
  color: var(--go-paper);
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 1;
}

.go-synthesis > p {
  margin: 0;
  color: rgba(255, 250, 240, 0.82);
  line-height: 1.75;
}

.go-reading {
  padding: 22px;
}

.go-reading-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.go-reading-head h3 {
  margin: 6px 0 0;
  color: var(--go-green);
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  line-height: 1;
}

.go-reading-head iconify-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(200, 226, 58, 0.2);
  color: var(--go-green);
}

.go-reading-hint {
  margin: 12px 0;
  color: var(--go-leaf);
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
}

.go-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.go-reading-grid div {
  padding: 14px;
  border: 1px solid var(--go-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
}

.go-reading-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--go-green);
  font-size: 13px;
}

.go-reading-grid p {
  margin: 0;
  color: var(--go-muted);
  font-size: 14px;
  line-height: 1.55;
}

.go-feedback {
  min-height: 20px;
  color: var(--go-leaf);
  font-size: 13px;
  font-weight: 800;
}

.go-feedback.is-error {
  color: var(--go-rust);
}

.go-history {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-top: 24px;
  padding: 22px;
}

.go-history h2 {
  margin: 0;
  color: var(--go-green);
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
}

.go-history p {
  margin: 4px 0 0;
  color: var(--go-muted);
}

.go-history button {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--go-rust);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.go-history-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.go-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--go-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
}

.go-history-item strong {
  color: var(--go-green);
}

.go-history-answer {
  display: block;
  margin-top: 4px;
  color: var(--go-rust);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.go-history-item p,
.go-history-item span,
.go-history-item time,
.go-history-empty {
  color: var(--go-muted);
  font-size: 13px;
  line-height: 1.45;
}

.go-history-item time {
  white-space: nowrap;
}

.go-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
}

.go-contact p {
  margin: 0;
  color: var(--go-muted);
}

.go-disclaimer {
  padding: 18px;
  margin-top: 18px;
  color: rgba(21, 20, 14, 0.7);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1024px) {
  .go-hero-layout,
  .go-board {
    grid-template-columns: 1fr;
  }

  .go-panel--setup {
    position: static;
  }

  .go-orbit {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 780px) {
  .go-hero {
    padding-top: 42px;
  }

  .go-hero h1 {
    font-size: 50px;
  }

  .go-lede {
    font-size: 16px;
  }

  .go-orbit {
    display: none;
  }

  .go-spread-picker,
  .go-reading-grid,
  .go-contact,
  .go-history,
  .go-history-item {
    grid-template-columns: 1fr;
  }

  .go-contact {
    align-items: stretch;
  }

  .go-cards[data-count="3"],
  .go-cards[data-count="4"],
  .go-cards[data-count="5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .go-card-wrap {
    max-width: 142px;
  }
}

@media (max-width: 440px) {
  .go-shell {
    width: min(100% - 20px, 1160px);
  }

  .go-cards[data-count="3"],
  .go-cards[data-count="4"],
  .go-cards[data-count="5"] {
    grid-template-columns: 1fr;
  }

  .go-card-wrap {
    max-width: 176px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .go-orbit-card,
  .go-deck.is-shuffling span,
  .go-ritual[data-state="shuffle"] .go-ritual-dots i,
  .go-ritual[data-state="deal"] .go-ritual-dots i,
  .go-cards.is-dealing .go-card-wrap {
    animation: none;
  }

  .go-card-inner,
  .go-synthesis,
  .go-reading,
  .go-btn,
  .go-spread-btn {
    transition: none;
  }
}
