/* Vivre Carde — scène immersive (parchemin vivant) */
.page-vc {
  --vc-bg: #0a0d11;
  --vc-ink: #f2ebe3;
  --vc-muted: #a89b8c;
  --vc-vital: #e85d4c;
  --vc-vital-soft: rgba(232, 93, 76, 0.35);
  --vc-parch: #d8c4a4;
  --vc-parch-deep: #b8956a;
  --vc-sea: #1a3a42;
  --vc-panel: rgba(18, 22, 28, 0.72);
  --vc-border: rgba(216, 196, 164, 0.18);
  background: var(--vc-bg);
  color: var(--vc-ink);
}

.page-vc .nav {
  background: linear-gradient(180deg, rgba(10, 13, 17, 0.92), rgba(10, 13, 17, 0.45) 70%, transparent);
  border-bottom: 0;
  backdrop-filter: blur(10px);
}

.page-vc .page-content {
  padding: 0 !important;
  max-width: none;
}

.vc-main {
  padding-bottom: 3rem;
  overflow-x: clip;
}

.vc-wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
}

.vc-wrap--wide {
  width: min(1100px, calc(100% - 2rem));
}

/* ── Stage full viewport ── */
.vc-stage {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding:
    calc(var(--dmajin-nav-inset, 0px) + var(--dmajin-nav-inner-h, 3.25rem) + 0.75rem)
    max(1rem, env(safe-area-inset-right))
    2.5rem
    max(1rem, env(safe-area-inset-left));
  overflow: hidden;
}

.vc-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(232, 93, 76, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 70% 70%, rgba(0, 245, 212, 0.08), transparent 50%),
    linear-gradient(180deg, #121820 0%, #0a0d11 55%, #061018 100%);
}

.vc-fog {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 40% 50%, rgba(184, 149, 106, 0.08), transparent 50%);
  filter: blur(40px);
  animation: vcFogDrift 18s ease-in-out infinite alternate;
}

.vc-fog--b {
  background: radial-gradient(ellipse at 70% 30%, rgba(26, 58, 66, 0.35), transparent 45%);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}

.vc-sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background:
    linear-gradient(180deg, transparent, rgba(26, 58, 66, 0.45) 40%, rgba(8, 18, 24, 0.9)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 40px,
      rgba(0, 245, 212, 0.03) 41px,
      transparent 42px
    );
  mask-image: linear-gradient(180deg, transparent, #000 35%);
  animation: vcSeaPulse 8s ease-in-out infinite alternate;
}

.vc-embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vc-ember {
  position: absolute;
  bottom: -4%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--vc-parch);
  opacity: 0.35;
  animation: vcEmberRise linear infinite;
  box-shadow: 0 0 6px var(--vc-vital-soft);
}

.vc-stage-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.vc-shard {
  position: absolute;
  width: 28px;
  height: 38px;
  border-radius: 3px 8px 4px 10px;
  background:
    linear-gradient(145deg, #e8d5b5, #c4a57a 60%, #9a7a52);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0.75;
  animation: vcShardPull 7s ease-in-out infinite;
}

.vc-shard--1 { top: 22%; left: 8%; animation-delay: 0s; transform: rotate(-18deg); }
.vc-shard--2 { top: 28%; right: 10%; width: 22px; height: 30px; animation-delay: -1.8s; transform: rotate(22deg); }
.vc-shard--3 { bottom: 26%; left: 14%; width: 20px; height: 26px; animation-delay: -3.2s; transform: rotate(8deg); }
.vc-shard--4 { bottom: 32%; right: 12%; width: 24px; height: 32px; animation-delay: -4.5s; transform: rotate(-12deg); }

.vc-pull-ring {
  position: absolute;
  top: 42%;
  left: 50%;
  width: min(340px, 70vw);
  height: min(340px, 70vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(232, 93, 76, 0.12);
  box-shadow: 0 0 60px rgba(232, 93, 76, 0.08);
  animation: vcRingPulse 4s ease-in-out infinite;
}

.vc-stage-core {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

@media (min-width: 860px) {
  .vc-stage-core {
    grid-template-columns: minmax(220px, 280px) 1fr;
    text-align: left;
    justify-items: stretch;
    gap: 3rem;
  }
}

/* Living parchment card */
.vc-living-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  animation: vcCardFloat 5.5s ease-in-out infinite;
}

.vc-living-card-glow {
  position: absolute;
  inset: -18% -10%;
  background: radial-gradient(ellipse at 50% 55%, var(--vc-vital-soft), transparent 65%);
  filter: blur(8px);
  animation: vcVitalGlow 2.2s ease-in-out infinite;
  z-index: 0;
}

.vc-living-card-face {
  position: relative;
  z-index: 1;
  width: min(240px, 62vw);
  aspect-ratio: 5 / 7;
  border-radius: 10px;
  transform: perspective(800px) rotateY(-6deg) rotateX(4deg);
  transition: transform 0.4s ease;
}

@media (min-width: 860px) {
  .vc-living-card-face:hover {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.03);
  }
}

.vc-parchment {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem 1rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(160deg, #e9d7b8 0%, #d2b48c 45%, #b8956a 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(90, 60, 30, 0.35),
    inset 0 -20px 40px rgba(90, 50, 20, 0.15);
}

.vc-parchment-stain {
  position: absolute;
  inset: 12% 18% auto;
  height: 28%;
  background: radial-gradient(ellipse, rgba(120, 60, 30, 0.12), transparent 70%);
  pointer-events: none;
}

.vc-parchment-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(80, 50, 25, 0.25);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 7px,
      rgba(90, 55, 25, 0.04) 8px
    );
  pointer-events: none;
  mix-blend-mode: multiply;
}

.vc-parchment-rune {
  margin: 0;
  font-size: 1.6rem;
  color: rgba(90, 35, 25, 0.55);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vc-heartbeat {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.vc-heartbeat-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--vc-vital);
  box-shadow: 0 0 16px var(--vc-vital);
  animation: vcBeat 1.15s ease-in-out infinite;
  z-index: 1;
}

.vc-heartbeat-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(232, 93, 76, 0.55);
  animation: vcBeatRing 1.15s ease-out infinite;
}

.vc-parchment-name {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: #4a2818;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.vc-parchment-sub {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(74, 40, 24, 0.7);
}

.vc-card-soon {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(168, 155, 140, 0.75);
}

.vc-stage-copy {
  max-width: 34rem;
}

.vc-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vc-parch);
}

.vc-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.vc-title span {
  color: var(--turquoise);
  text-shadow: 0 0 28px rgba(0, 245, 212, 0.35);
}

.vc-lead {
  margin: 0 0 1.4rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--vc-muted);
}

.vc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 860px) {
  .vc-cta-row { justify-content: flex-start; }
}

.vc-hero-cta {
  min-height: 48px;
  padding-inline: 1.4rem;
  box-shadow: 0 0 28px rgba(0, 245, 212, 0.25);
}

.vc-link-ghost {
  color: var(--vc-parch);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 196, 164, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.vc-link-ghost:hover {
  color: var(--vc-ink);
  border-color: var(--vc-ink);
}

.vc-stage-scroll {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.vc-stage-scroll span {
  display: block;
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(216, 196, 164, 0.4);
  border-radius: 10px;
  position: relative;
}

.vc-stage-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--vc-parch);
  animation: vcScrollDot 1.6s ease-in-out infinite;
}

/* Lore rail */
.vc-section {
  position: relative;
  padding: 2.75rem 0;
}

.vc-section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vc-parch);
}

.vc-section-title {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  letter-spacing: 0.04em;
}

.vc-lore {
  background:
    linear-gradient(180deg, transparent, rgba(26, 58, 66, 0.18) 30%, transparent);
}

.vc-lore-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .vc-lore-rail {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .vc-lore-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.vc-lore-item {
  position: relative;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--vc-border);
  background:
    linear-gradient(165deg, rgba(216, 196, 164, 0.07), rgba(10, 13, 17, 0.5));
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.vc-lore-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--vc-vital), var(--vc-parch));
  opacity: 0.7;
}

.vc-lore-item:hover {
  border-color: rgba(232, 93, 76, 0.35);
  transform: translateY(-3px);
}

.vc-lore-num {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--vc-vital);
  opacity: 0.85;
}

.vc-lore-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vc-ink);
}

.vc-lore-item p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--vc-muted);
}

/* Facts */
.vc-facts-banner {
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(0, 245, 212, 0.12), transparent 50%),
    rgba(12, 18, 22, 0.85);
}

.vc-facts-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.vc-facts-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.vc-facts-pills li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 196, 164, 0.28);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.84rem;
  color: var(--vc-ink);
}

/* Order form (kept functional) */
.vc-order-intro {
  margin: 0 0 1.25rem;
  color: var(--vc-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.vc-form {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--vc-border);
  background: var(--vc-panel);
  backdrop-filter: blur(12px);
}

.vc-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.vc-field {
  display: grid;
  gap: 0.35rem;
}

.vc-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vc-muted);
}

.vc-field input,
.vc-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--vc-border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--vc-ink);
  font-family: inherit;
  font-size: 16px;
}

.vc-field textarea {
  min-height: 96px;
  resize: vertical;
}

.vc-field input:focus,
.vc-field textarea:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.12);
}

.vc-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--vc-muted);
}

.vc-pay {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.vc-pay legend {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vc-muted);
}

.vc-pay-opt {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--vc-border);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.vc-pay-opt:has(input:checked) {
  border-color: rgba(0, 245, 212, 0.45);
  background: rgba(0, 245, 212, 0.08);
}

.vc-pay-opt input {
  margin-top: 0.2rem;
  accent-color: var(--turquoise);
}

.vc-pay-opt strong {
  display: block;
  font-size: 0.92rem;
}

.vc-pay-opt small {
  display: block;
  margin-top: 0.15rem;
  color: var(--vc-muted);
  font-size: 0.78rem;
}

.vc-bank {
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(0, 245, 212, 0.35);
  background: rgba(0, 245, 212, 0.05);
  display: grid;
  gap: 0.85rem;
}

.vc-bank-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.vc-bank-dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.vc-bank-dl > div {
  display: grid;
  gap: 0.15rem;
}

.vc-bank-dl dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vc-muted);
}

.vc-bank-dl dd {
  margin: 0;
}

.vc-bank-dl code {
  font-size: 0.95rem;
  color: var(--turquoise);
}

.vc-stub {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.08);
  font-size: 0.88rem;
  line-height: 1.45;
}

.vc-proof-preview {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--vc-muted);
}

.vc-proof-preview img {
  display: block;
  max-width: 180px;
  max-height: 120px;
  margin-top: 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--vc-border);
  object-fit: cover;
}

.vc-form-msg {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: #fca5a5;
}

.vc-form-msg.is-ok {
  color: #6ee7b7;
}

.vc-submit {
  min-height: 48px;
  width: 100%;
}

.vc-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vc-success {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.4);
  background: rgba(0, 245, 212, 0.1);
}

.vc-success h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.vc-success p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

/* Keyframes */
@keyframes vcFogDrift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.05); }
}

@keyframes vcSeaPulse {
  from { opacity: 0.75; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-6px); }
}

@keyframes vcCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes vcVitalGlow {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes vcBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(0.95); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

@keyframes vcBeatRing {
  0% { transform: scale(0.55); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes vcShardPull {
  0%, 100% { translate: 0 0; opacity: 0.55; }
  50% { translate: 12px 8px; opacity: 0.9; }
}

.vc-shard--2 { --pull-x: -14px; }
.vc-shard--2 { animation-name: vcShardPullAlt; }
.vc-shard--3 { animation-name: vcShardPullAlt; }

@keyframes vcShardPullAlt {
  0%, 100% { translate: 0 0; opacity: 0.5; }
  50% { translate: -14px -6px; opacity: 0.85; }
}

@keyframes vcRingPulse {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes vcEmberRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.5; }
  100% { transform: translateY(-100vh) scale(0.4); opacity: 0; }
}

@keyframes vcScrollDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

@media (max-width: 768px) {
  body.page-vc {
    overflow-x: clip;
  }

  body.page-vc main.page-content {
    padding: 0 !important;
  }

  .vc-wrap,
  .vc-wrap--wide {
    width: min(100%, calc(100% - 1.5rem));
    max-width: 100%;
    box-sizing: border-box;
  }

  .vc-stage {
    align-content: flex-start;
    min-height: auto;
    padding-top: calc(var(--dmajin-nav-inset, 0px) + var(--dmajin-nav-inner-h, 3.25rem) + 0.65rem);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .vc-stage-core {
    width: 100%;
    max-width: 100%;
  }

  .vc-cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.55rem;
  }

  .vc-cta-row .btn,
  .vc-submit {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    box-sizing: border-box;
  }

  .vc-pay-opt {
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .vc-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .vc-living-card {
    max-width: min(100%, 280px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-fog,
  .vc-sea,
  .vc-living-card,
  .vc-living-card-glow,
  .vc-heartbeat-core,
  .vc-heartbeat-ring,
  .vc-shard,
  .vc-pull-ring,
  .vc-ember,
  .vc-stage-scroll span::after {
    animation: none !important;
  }
  .vc-living-card-face {
    transform: none;
  }
}
