@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --burgundy: #17324d;
  --burgundy-dark: #12283e;
  --gold: #d8b875;
  --terracotta: #d8b875;
  --amber: #5d7082;
  --rose: #b89c63;
  --honey: #d8b875;
  --cream: #fdf6ef;
  --cream-2: #f6ece0;
  --ink: #17324d;
  --muted: #6f6a63;
  --success: #4a7c59;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(23, 50, 77, 0.12);
  --shadow-lg: 0 24px 60px rgba(23, 50, 77, 0.18);
  --band-plain: #fffaf5;
  --band-blush: #f6e0d2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

.section-band[id] {
  scroll-margin-top: 90px;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(60vw 40vh at 15% 0%, rgba(216, 184, 117, 0.14), transparent 60%),
    radial-gradient(50vw 40vh at 100% 10%, rgba(23, 50, 77, 0.08), transparent 60%),
    var(--cream);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Grain léger pour une texture plus premium */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Ornement "chapitre" — reprend l'idée du livre/histoire du logo */
.chapter-eyebrow {
  display: block;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 14px;
}

.chapter-eyebrow::before { content: "❦  "; }
.chapter-eyebrow::after { content: "  ❦"; }

.band-dark .chapter-eyebrow { color: var(--gold); }

/* Apparition douce au scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

.steps .step-card.reveal:nth-child(2), .steps-4 .step-card.reveal:nth-child(2),
.levels .level-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .step-card.reveal:nth-child(3), .steps-4 .step-card.reveal:nth-child(3),
.levels .level-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.steps-4 .step-card.reveal:nth-child(4) { transition-delay: 0.3s; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.4em;
  color: var(--burgundy-dark);
}

a { color: inherit; }

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(23, 50, 77);
  border-bottom: 1px solid rgba(216, 184, 117, 0.25);
}

.site-nav .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { right: 0; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  isolation: isolate;
}

.logo::before {
  content: "";
  position: absolute;
  inset: -35% -8%;
  background: radial-gradient(circle, rgba(216, 184, 117, 0.4), transparent 72%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: logoGlowBreathe 5s ease-in-out infinite;
}

@keyframes logoGlowBreathe {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.55; }
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ---------- Buttons ---------- */

.btn {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.15s ease;
}

/* Halo lumineux qui suit le curseur */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn:hover::after { opacity: 1; }

.btn:active { transform: scale(0.96) !important; }

.btn-primary::before,
.btn-gold::before {
  content: "→";
  display: inline-block;
  width: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), margin-right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  margin-right: 0;
}

.btn-primary:hover::before,
.btn-gold:hover::before {
  width: 1em;
  opacity: 1;
  transform: translateX(0);
  margin-right: 2px;
}

.btn-primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 50, 77, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(23, 50, 77, 0.4);
}

.btn-gold {
  background: var(--gold);
  color: var(--burgundy-dark);
  box-shadow: 0 10px 24px rgba(216, 184, 117, 0.4);
}

.btn-gold:hover {
  box-shadow: 0 16px 34px rgba(216, 184, 117, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--burgundy-dark);
  border: 1.5px solid rgba(23, 50, 77, 0.3);
}

.btn-ghost::after { background: radial-gradient(90px circle at var(--mx) var(--my), rgba(23, 50, 77, 0.12), transparent 70%); }

.btn-ghost:hover {
  background: rgba(23, 50, 77, 0.05);
  border-color: var(--burgundy);
}

.site-nav .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.site-nav .btn-primary {
  background: var(--gold);
  color: var(--burgundy-dark);
  box-shadow: 0 8px 20px rgba(216, 184, 117, 0.3);
}

.site-nav .btn-primary:hover {
  box-shadow: 0 12px 26px rgba(216, 184, 117, 0.45);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled::after { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 76px 24px 90px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 90% at 12% 8%, rgba(216, 184, 117, 0.35), transparent 60%),
    radial-gradient(55% 80% at 92% 0%, rgba(23, 50, 77, 0.16), transparent 55%),
    radial-gradient(70% 60% at 50% 100%, rgba(216, 184, 117, 0.18), transparent 60%),
    linear-gradient(180deg, #fffaf4, var(--cream-2));
}

.hero-bg-photo {
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 130%;
  z-index: -3;
  background-image: url("../img/background-1.jpg");
  background-size: cover;
  background-position: 70% 40%;
  opacity: 0.7;
  will-change: transform;
}

.hero-bg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--cream) 20%, rgba(253, 246, 239, 0.68) 40%, rgba(253, 246, 239, 0.2) 68%),
    linear-gradient(180deg, rgba(253, 246, 239, 0.2) 0%, transparent 14%, transparent 86%, var(--cream) 100%);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 { width: 380px; height: 380px; left: -100px; top: -80px; background: radial-gradient(circle, var(--gold), transparent 70%); opacity: 0.4; }
.blob-2 { width: 320px; height: 320px; right: -80px; top: 20px; background: radial-gradient(circle, var(--burgundy), transparent 70%); opacity: 0.18; }

.hero .eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--burgundy);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(23, 50, 77, 0.1);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.hero h1 .accent {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(100deg, var(--terracotta) 42%, #fff6e4 50%, var(--terracotta) 58%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
  0% { background-position: 200% center; }
  50% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

.hero h1 .accent svg {
  position: absolute;
  left: 0;
  bottom: -0.16em;
  width: 100%;
  height: auto;
}

.hero p.lead {
  max-width: 580px;
  margin: 18px auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero-copy > .btn-primary {
  animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .eyebrow { animation: heroFadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both, eyebrowGlow 2.8s ease-in-out infinite 0.9s; }
.hero h1 { animation-delay: 0.12s; }
.hero p.lead { animation-delay: 0.28s; }
.hero-copy > .btn-primary { animation-delay: 0.44s; }

@keyframes eyebrowGlow {
  0%, 100% { box-shadow: 0 6px 16px rgba(23, 50, 77, 0.1); transform: scale(1); }
  50% { box-shadow: 0 6px 20px rgba(216, 184, 117, 0.5); transform: scale(1.03); }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ---------- Hero éclaté (deux colonnes) ---------- */

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  text-align: left;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-split .eyebrow { margin-left: 0; margin-right: 0; }
.hero-split h1 { margin-left: 0; text-align: left; }
.hero-split p.lead { margin-left: 0; text-align: left; }

.hero-visual { position: relative; display: flex; justify-content: center; will-change: transform; }

.book-page {
  position: relative;
  background: #fffdf9;
  border-radius: 6px 26px 26px 6px;
  box-shadow: -7px 0 0 rgba(23, 50, 77, 0.08), 0 34px 70px rgba(23, 50, 77, 0.22);
  padding: 32px 28px;
  width: 100%;
  max-width: 360px;
  animation: bookFloat 6s ease-in-out infinite;
}

@keyframes bookFloat {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-10px); }
}

.hero-sparkle {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
  animation: sparkleBob 4.5s ease-in-out infinite;
}

.hero-sparkle.s2 { animation-duration: 5.5s; animation-delay: 0.7s; }
.hero-sparkle.s3 { animation-duration: 3.8s; animation-delay: 1.4s; }

@keyframes sparkleBob {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-14px) scale(1.2); opacity: 1; }
}

.book-page::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(23, 50, 77, 0.14);
}

.book-page-month {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 50, 77, 0.1);
}

.book-page-month strong {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: var(--burgundy-dark);
}

.book-page-month span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.book-page-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.book-page-title {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: var(--burgundy-dark);
  margin-bottom: 20px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.mini-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--cream-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.55rem;
  color: var(--muted);
  font-weight: 600;
}

.mini-cell .mini-icon { font-size: 0.78rem; line-height: 1; }

/* Animations permanentes des pictos de mission */

@keyframes iconFlicker {
  0%, 42%, 100% { transform: scale(1); opacity: 1; }
  47% { transform: scale(0.82); opacity: 0.55; }
  52% { transform: scale(1.08); opacity: 1; }
  60% { transform: scale(0.94); opacity: 0.85; }
  66% { transform: scale(1); opacity: 1; }
}

@keyframes iconHeartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.16); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  56% { transform: scale(1); }
}

@keyframes iconWobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.icon-bolt, .icon-heart, .icon-coffee {
  display: inline-block;
  transform-origin: center;
}

.icon-bolt { animation: iconFlicker 2.6s ease-in-out infinite; }
.icon-heart { animation: iconHeartbeat 1.8s ease-in-out infinite; }
.icon-coffee { animation: iconWobble 3.2s ease-in-out infinite; transform-origin: bottom center; }
.mini-cell.locked { opacity: 0.45; }
.mini-cell.today { border: 1.5px solid var(--burgundy); color: var(--burgundy-dark); background: #fff; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split .eyebrow, .hero-split h1, .hero-split p.lead { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 20px; }
}

/* ---------- Frise chronologique ---------- */

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-left: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--gold) 0, var(--gold) 6px, transparent 6px, transparent 12px);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--gold);
}

.timeline-date {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--burgundy-dark);
  background: var(--cream-2);
  border: 1px solid rgba(216, 184, 117, 0.55);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.timeline-content p { color: var(--muted); margin: 0; }

@media (max-width: 560px) {
  .timeline { padding-left: 28px; }
  .timeline-marker { left: -28px; }
}

/* Numéro fantôme dans les cartes chapitre */

.step-card { position: relative; overflow: hidden; }

.ghost-num {
  position: absolute;
  right: 8px;
  top: -18px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(23, 50, 77, 0.06);
  pointer-events: none;
}

/* ---------- Sections ---------- */

section { padding: 48px 0; }

.section-band {
  padding: 68px 0;
  position: relative;
}

.band-plain { background: var(--band-plain); }
.band-blush { background: linear-gradient(180deg, var(--band-blush), #f2d4c1); }

.band-dark {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(216, 184, 117, 0.14), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(160deg, #1c3b56, #0b1721 75%);
  color: var(--cream);
}

.band-dark .section-title,
.band-dark .chapter-header h3 { color: var(--cream); }

.band-dark .section-sub { color: rgba(253, 246, 239, 0.7); }

.band-dark .step-card {
  background: #fffdf9;
  border: none;
  border-top-width: 4px !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  text-align: left;
  padding-top: 26px;
}

.band-dark .step-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.band-dark .step-card h3 { color: var(--burgundy-dark); }
.band-dark .step-card p { color: var(--muted); }
.band-dark .ghost-num { color: rgba(23, 50, 77, 0.08); }

.chapter-date-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--burgundy-dark);
  background: var(--cream-2);
  border: 1px solid rgba(216, 184, 117, 0.55);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 6px 0 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Mission levels */

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.level-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.level-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.level-icon { font-size: 2.3rem; display: block; margin-bottom: 10px; }

.level-duration {
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.level-desc { color: var(--muted); font-size: 0.92rem; }

/* CTA band */

.cta-band {
  position: relative;
  background: var(--gold);
  border: 1.5px solid rgba(23, 50, 77, 0.15);
  border-radius: 28px;
  color: var(--burgundy-dark);
  text-align: center;
  padding: 64px 32px;
  overflow: hidden;
}

.cta-band .chapter-eyebrow { color: var(--burgundy); }

.cta-band h2 { color: var(--burgundy-dark); }
.cta-band p { color: rgba(23, 50, 77, 0.72); margin-bottom: 26px; max-width: 440px; margin-left: auto; margin-right: auto; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 32px 24px 60px;
}

footer p { margin: 0; }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--burgundy);
  transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-links a:hover { color: var(--burgundy-dark); }
.footer-links a:hover::after { right: 0; }

/* ---------- Forms ---------- */

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--burgundy-dark);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e6d9cd;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream-2);
}

.form-group input:focus {
  outline: none;
  border-color: var(--burgundy);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-divider {
  border: none;
  border-top: 1px dashed #e6d9cd;
  margin: 22px 0;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream-2);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-weight: 600;
}

.price-line .price { color: var(--burgundy); font-size: 1.2rem; }

/* Stripe (simulation) */

.stripe-spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto 0;
  border: 3px solid var(--cream-2);
  border-top-color: #635bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.stripe-mock { border-top: 4px solid #635bff; }

.stripe-mock-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.stripe-logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #635bff;
}

.stripe-mock-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--cream-2);
  padding: 4px 10px;
  border-radius: 999px;
}

.stripe-mock-amount {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin-bottom: 4px;
}

/* Email preview */

.email-preview {
  border: 1px solid #e6d9cd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.email-meta {
  background: var(--cream-2);
  padding: 14px 18px;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid #e6d9cd;
}

.email-meta div { margin-bottom: 3px; }
.email-meta strong { color: var(--burgundy-dark); }

.email-body {
  padding: 20px 18px;
  font-size: 0.9rem;
}

.email-body p { margin: 0 0 12px; }

.email-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream-2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--burgundy-dark);
}

/* Confirmation */

.access-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream-2);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.access-link-box .who { font-weight: 600; font-size: 0.9rem; }
.access-link-box .link { font-size: 0.8rem; color: var(--muted); word-break: break-all; }

/* ---------- App (acces.html) ---------- */

.app-header {
  text-align: center;
  padding: 32px 24px 8px;
}

.app-header .who-badge {
  display: inline-block;
  background: var(--cream-2);
  color: var(--burgundy);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.chapter-block {
  --chapter-color: var(--gold);
  max-width: 640px;
  margin: 0 auto 30px;
  padding: 20px 20px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s ease;
}

.chapter-block.current {
  background: #fff;
  border-color: color-mix(in srgb, var(--chapter-color) 45%, transparent);
  box-shadow: var(--shadow);
}

.chapter-header { text-align: center; margin-bottom: 16px; position: relative; }

.chapter-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chapter-color);
  margin-bottom: 4px;
}

.chapter-header h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.chapter-header h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--chapter-color);
}

.chapter-header h3 { font-size: 1.15rem; margin-bottom: 4px; }

.chapter-theme { font-size: 0.85rem; color: var(--muted); margin: 0; }

.chapter-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .calendar-grid { grid-template-columns: repeat(4, 1fr); }
}

.day-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23,50,77,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.day-cell .day-num { font-size: 0.85rem; opacity: 0.6; }
.day-cell .day-icon { font-size: 1.3rem; margin-top: 2px; }

.day-cell.locked { opacity: 0.4; }
.day-cell.pending {
  border-color: var(--chapter-color, var(--gold));
  cursor: pointer;
  animation: pulse 2s ease-in-out infinite;
}
.day-cell.clickable:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 18px rgba(90,30,45,0.15); }
.day-cell.chosen {
  background: color-mix(in srgb, var(--chapter-color, var(--gold)) 14%, #fff);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--chapter-color, var(--gold)) 25%, transparent);
}
.day-cell.today .day-num { color: var(--burgundy); font-weight: 800; opacity: 1; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--chapter-color, var(--gold)) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.panel {
  max-width: 560px;
  margin: 32px auto 60px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.panel h2 { margin-bottom: 6px; }
.panel .muted { color: var(--muted); font-size: 0.92rem; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.choice-card {
  border: 2px solid #e6d9cd;
  border-radius: 12px;
  padding: 18px 10px;
  background: var(--cream-2);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.choice-card:hover { border-color: var(--gold); transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 22px rgba(23,50,77,0.12); }

.choice-card .icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.choice-card .dur { font-weight: 600; color: var(--burgundy); }
.choice-card .desc { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.mission-reveal .icon-big {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, #fff);
}
.mission-text {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin: 14px 0 22px;
  line-height: 1.5;
}

.partner-status {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px dashed #e6d9cd;
}

.warning-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9c5f13;
  background: #fbe9d0;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 14px 0 0;
}

.tonight-panel {
  border: 1.5px solid rgba(216, 184, 117, 0.5);
  margin: 24px auto;
}

.tonight-panel h2 { font-size: 1.2rem; }

.error-box {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
}

/* ---------- Demo panel ---------- */

.demo-panel {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 999;
  font-size: 0.85rem;
}

.demo-toggle {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.demo-toggle.demo-active { background: var(--gold); color: #fff; }

.demo-body {
  margin-top: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  width: 260px;
}

.demo-body label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--burgundy-dark);
}

.demo-body input {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
}

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

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.demo-current {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 0;
}

.steps-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .steps, .levels, .steps-4 { grid-template-columns: 1fr; }
}
