/* Asteria — l'accueil (refonte 2) : la promesse et l'app dans la main, l'app écran par écran, le tirage, les jeux,
   ton ciel, les rituels, le reste de l'app. */

section { position: relative; }
.wrap h2 { max-width: 13em; }

/* ── Le téléphone : un iPhone dessiné, ses écrans réels ───────────────────────────────────────────────────── */
.phone { --pw: 300px; position: relative; width: var(--pw); aspect-ratio: 1206 / 2622; }
.phone-body {
  position: absolute; inset: 0; border-radius: calc(var(--pw) * .165);
  padding: calc(var(--pw) * .032);
  background: linear-gradient(140deg, #4a4b55 0%, #1a1b22 18%, #0c0c12 50%, #23242c 82%, #55565f 100%);
  box-shadow:
    inset 0 0 0 calc(var(--pw) * .004) rgba(255, 255, 255, .22),
    inset 0 0 0 calc(var(--pw) * .012) #0a0a0f,
    0 calc(var(--pw) * .18) calc(var(--pw) * .4) calc(var(--pw) * -.1) rgba(0, 0, 0, .9),
    0 0 calc(var(--pw) * .35) rgba(120, 130, 220, .14);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .135); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 20%, #1b1d33, #05060b 70%); isolation: isolate; }
.phone-screen .scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.phone-screen .scr.is-on { opacity: 1; transform: none; }
.island { position: absolute; z-index: 2; top: calc(var(--pw) * .052); left: 50%; width: calc(var(--pw) * .3); height: calc(var(--pw) * .088);
  transform: translateX(-50%); background: #000; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.glare { position: absolute; inset: calc(var(--pw) * .032); z-index: 3; border-radius: calc(var(--pw) * .135); pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06) 100%);
  mix-blend-mode: screen; }

/* ═══ 1 · L'ouverture ═══════════════════════════════════════════════════════════════════════════════════ */
.hero { min-height: 100svh; padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 28px); overflow: clip; isolation: isolate; }
/* la photo couvre au plus 900 points de haut (2 752 px ÷ 3) : au-delà, la nuit ; jamais agrandie au-delà de ses pixels */
.hero-bg { position: absolute; inset: 0 0 auto 0; height: min(100%, 900px); z-index: -1; overflow: hidden; }
/* La photo du ciel de l'app (son écran Thème), à sa pleine résolution : jamais agrandie au-delà de ses pixels, jamais
   éteinte par une transparence ; seul un dégradé de nuit garde le texte lisible. */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: scale(1.02); will-change: transform; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 11, .78) 0%, rgba(5, 6, 11, .42) 30%, rgba(5, 6, 11, .12) 52%,
    rgba(5, 6, 11, .5) 80%, var(--night) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
/* sur un téléphone le texte est posé sur la photo : un voile de nuit derrière lui seulement, la photo reste vue autour */
.hero-copy { position: relative; isolation: isolate; }
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -24px -40px -10px -40px; pointer-events: none;
  background: radial-gradient(120% 80% at 35% 55%, rgba(5, 6, 11, .72) 0%, rgba(5, 6, 11, .5) 45%, rgba(5, 6, 11, 0) 78%); }
@media (min-width: 1000px) { .hero-copy::before { display: none; } }
.hero-title { font-size: clamp(66px, 18.5vw, 168px); line-height: .9; }
.hero-title em { display: inline-block; }
.hero-lead { font-size: clamp(17px, 2.1vw, 22px); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { list-style: none; margin: 30px 0 0; padding: 0; display: flex; gap: 26px; }
.proof li { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); max-width: 9em; }
.proof li span { display: block; min-height: 2.6em; }  /* chaque libellé sur deux lignes : les chiffres alignés */
.proof b { display: block; font: 400 34px/1 var(--display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; text-transform: none; }
/* le téléphone et ses deux lames se fondent dans la nuit au bas de l'ouverture : jamais tranchés net au défilement */
.hero-stage { position: relative; height: clamp(440px, 128vw, 720px); margin-top: 26px; perspective: 1400px;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, .55) 82%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 62%, rgba(0, 0, 0, .55) 82%, transparent 99%); }
.hero-glow { position: absolute; left: 50%; top: 52%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(150, 140, 255, .28), rgba(236, 220, 192, .10) 45%, transparent 70%); filter: blur(10px); }
.hero-phone { --pw: min(64vw, 320px); position: absolute; left: 50%; top: 4%; transform: translateX(-50%) rotate(-3deg); z-index: 2; }
.hero-card { position: absolute; top: 18%; z-index: 1; }
.hero-card .card { --w: min(34vw, 190px); }
.hero-card.left { left: max(0px, calc(50% - min(64vw, 320px) * .5 - min(34vw, 190px) * .62)); transform: rotate(-14deg); }
.hero-card.right { right: max(0px, calc(50% - min(64vw, 320px) * .5 - min(34vw, 190px) * .62)); transform: rotate(12deg); top: 26%; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; z-index: 3; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--ink-2)); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (min-width: 1000px) {
  /* sur un grand écran, la photo est une fenêtre sur le ciel derrière le téléphone, fondue dans la nuit à gauche */
  .hero-bg { left: auto; right: max(0px, calc((100vw - var(--maxw)) / 2 - 120px)); height: 100%; width: min(53vw, 760px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%);
    mask-image: linear-gradient(90deg, transparent, #000 34%); }
  .hero-bg img { object-position: 50% 40%; }
  @media (min-width: 1500px) { .hero-bg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 74%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 74%, transparent); } }
  .hero-bg::after { background: linear-gradient(180deg, rgba(5, 6, 11, .45) 0%, rgba(5, 6, 11, 0) 22%, rgba(5, 6, 11, 0) 70%, var(--night) 100%); }
  .hero { display: flex; align-items: center; padding-bottom: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .hero-title { font-size: clamp(84px, 8.2vw, 132px); }
  .hero-stage { height: min(86vh, 820px); margin-top: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }
  .hero-phone { --pw: min(23vw, 360px); top: 6%; }
  .hero-card .card { --w: min(14vw, 220px); }
  .hero-card.left { left: 0; top: 24%; }
  .hero-card.right { right: -2%; top: 30%; }
}

/* ═══ 2 · L'app écran par écran ═════════════════════════════════════════════════════════════════════════ */
.tour { height: calc(6 * 85svh + 100svh); }
.tour-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.tour-grid { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
  padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 14px); padding-bottom: 14px; }
.tour-copy { min-width: 0; }
.tour-copy .eyebrow { margin-bottom: 14px; }
.tour-tabs { list-style: none; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  transition: color .4s, background .4s, border-color .4s; }
.tour-tabs button[aria-selected="true"] { color: #0a0a12; background: var(--ink); border-color: var(--ink); }
.tour-steps { position: relative; min-height: 196px; }
.tour-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); filter: blur(6px); pointer-events: none;
  transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s var(--ease); }
.tour-step.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.tour-step h2 { font-size: clamp(34px, 9.4vw, 84px); line-height: .96; }
.tour-step .lead { font-size: clamp(15px, 1.7vw, 19px); margin-top: 12px; }
.tour-device { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 0; }
.tour-halo { position: absolute; left: 50%; bottom: 0; width: 140%; height: 120%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(140, 130, 255, .22), transparent 70%); pointer-events: none; }
.tour-phone { --pw: min(56vw, calc((100svh - 400px) * .46), 330px); transform: translateY(0); }
.tour-track { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-rows: repeat(6, 1fr); padding-bottom: 100svh; }
@media (min-width: 1000px) {
  .tour-grid { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 60px; }
  .tour-tabs { margin: 0 0 30px; padding: 0; flex-wrap: wrap; }
  .tour-steps { min-height: 330px; }
  .tour-device { height: 100%; align-items: center; }
  .tour-phone { --pw: min(25vw, calc((100svh - 140px) * .46), 380px); }
}
.step-eyebrow, .step-phone { display: none; }
/* Sur un téléphone, la visite n'est pas épinglée : Safari et ses barres laissent 664 points de haut, trop peu pour un
   texte et un téléphone lisible ensemble. Chaque écran de l'app devient un bloc qu'on fait défiler, son téléphone en grand. */
@media (max-width: 999px) {
  .tour { height: auto; padding: 30px 0 10px; }
  .tour-sticky { position: static; height: auto; overflow: visible; }
  .tour-grid { display: block; height: auto; padding-top: 0; padding-bottom: 0; }
  .tour-tabs, .tour-device, .tour-track, .tour-copy > .eyebrow { display: none; }
  .tour-steps { min-height: 0; }
  .tour-step { position: static; opacity: 1; transform: none; filter: none; pointer-events: auto; padding: 44px 0 36px; }
  .tour-step + .tour-step { border-top: 1px solid var(--line); }
  .tour-step h2 { font-size: clamp(36px, 10vw, 52px); }
  .tour-step .lead { font-size: 16.5px; }
  .step-eyebrow { display: inline-flex; margin-bottom: 14px; }
  .step-phone { display: block; --pw: min(78vw, 320px); margin: 30px auto 0; }
}

/* ═══ 3 · Le tirage ═════════════════════════════════════════════════════════════════════════════════════ */
.draw { padding: 110px 0 80px; isolation: isolate; }
.draw-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 62%, color-mix(in srgb, var(--tone) 70%, transparent), transparent 70%); transition: background 1.2s; }
.draw-head { text-align: center; display: grid; justify-items: center; }
.draw-head .eyebrow { justify-content: center; }
.draw-head .lead { margin-left: auto; margin-right: auto; }
.draw-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
.stage { position: relative; height: var(--stage-h, 330px); transition: height .9s var(--ease); }
.table { position: absolute; inset: 0; perspective: 1400px; perspective-origin: 50% 40%; }
.table .card { position: absolute; left: 50%; top: 0; margin-left: calc(var(--w) / -2);
  transition: transform .8s var(--ease), opacity .6s var(--ease), width .9s var(--ease), margin .9s var(--ease); will-change: transform; }
.table .card .side { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 16px 34px -14px rgba(0, 0, 0, .9); }
.table .card.pickable { cursor: pointer; }
.table .card.riffle { transition: none !important; }
.table .glow { position: absolute; left: 50%; top: 52%; width: 360px; height: 220px; margin: -110px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 70%, #8ea0ff 30%), transparent); opacity: .6; filter: blur(16px); pointer-events: none; }
.deck-hit { position: absolute; left: 50%; top: 0; width: 170px; height: 270px; margin-left: -85px; border-radius: 12px; z-index: 5; }
.draw[data-state="idle"] .deck-hit { cursor: pointer; }
.draw:not([data-state="idle"]) .deck-hit { pointer-events: none; }
.draw[data-state="idle"] .table { animation: float 5.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@property --sweep { syntax: "<percentage>"; inherits: true; initial-value: -40%; }
.draw[data-state="idle"] .table .card:last-of-type .sheen { --mx: var(--sweep); --my: 12%; animation: sweep 5.5s var(--ease-io) infinite 1.2s; opacity: 1; }
@keyframes sweep { 0% { --sweep: -40%; } 45%, 100% { --sweep: 140%; } }
.prompt { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font: 500 12px/1.4 var(--mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: opacity .5s var(--ease); }
.draw[data-state="idle"] .prompt span { animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .5; } }
.draw[data-state="read"] .prompt { opacity: 0; }
.reading { margin-top: 26px; max-width: 580px; justify-self: center; text-align: center; width: 100%; }
.reading > * { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reading.shown > * { opacity: 1; transform: none; }
.reading.shown > :nth-child(2) { transition-delay: .06s; } .reading.shown > :nth-child(3) { transition-delay: .12s; }
.reading.shown > :nth-child(4) { transition-delay: .3s; } .reading.shown > :nth-child(5) { transition-delay: .5s; }
.reading.shown > :nth-child(6) { transition-delay: .6s; } .reading.shown > :nth-child(7) { transition-delay: .7s; }
.reading-num { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .3em; color: var(--ink-3); }
.reading-name { margin: 10px 0 0; font-size: clamp(44px, 11vw, 72px); line-height: .95; }
.reading-deck { margin: 10px 0 0; font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.reading-body { margin: 30px auto 0; }
.reading-label { justify-content: center; }
.reading-text { margin: 0 auto; font: italic 400 clamp(25px, 3.1vw, 32px)/1.24 var(--quote); color: var(--ink); max-width: 22em; text-wrap: pretty; letter-spacing: -.005em; }
.reading-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.reading-more { margin: 26px auto 0; max-width: 28em; font: 400 15px/1.5 var(--sans); color: var(--ink-3); }
.reading-more a { color: var(--ink); font-weight: 600; margin-left: 4px; }
@media (min-width: 1000px) {
  /* le jeu se tient au milieu de la page ; la carte tirée glisse à gauche et sa lecture s'ouvre à droite */
  .draw-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: 60px; }
  .stage { grid-column: 1 / -1; grid-row: 1; height: var(--stage-h, 520px); }
  .reading { grid-column: 2; grid-row: 1; position: relative; z-index: 2; text-align: left; margin-top: 0; justify-self: start; }
  .reading-label, .worlds .eyebrow, .reading-actions { justify-content: flex-start; }
  .reading-text { margin-left: 0; }
  .worlds-strip { margin: 0; padding-left: 2px; padding-right: 2px; }
  .reading-more { margin-left: 0; }
}

/* ═══ 4 · Les jeux : deux rangées qui défilent ══════════════════════════════════════════════════════════ */
.decks { padding: 120px 0 110px; overflow: clip; }
.marquee { margin-top: 50px; display: grid; gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-row { overflow: hidden; min-height: calc(clamp(128px, 31vw, 210px) / .5781); display: flex; align-items: center; }
.marquee-track { display: flex; align-items: center; gap: 16px; width: max-content; animation: slide var(--dur, 90s) linear infinite; will-change: transform; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }
.marquee .card { --w: clamp(128px, 31vw, 210px); flex: none; }
.marquee .card .side { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -20px rgba(0, 0, 0, .9); }
.decks-foot { margin-top: 44px; display: flex; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ═══ 5 · Ton ciel ══════════════════════════════════════════════════════════════════════════════════════ */
.skyread { padding: 120px 0 110px; }
.skyread-grid { display: grid; gap: 34px; }
.sky-form { position: relative; border-radius: 30px; padding: 6px; max-width: 560px; width: 100%;
  background: linear-gradient(180deg, rgba(24, 26, 44, .78), rgba(12, 13, 24, .86));
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 100px -50px #000, inset 0 1px 0 rgba(255, 255, 255, .08); }
#row-city { position: relative; }
.city-list { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: #12142a; border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 70px -20px #000; max-height: 300px; overflow: auto; }
.city-list li { padding: 13px 14px; border-radius: 14px; font: 500 16px/1.3 var(--sans); color: var(--ink-2); cursor: pointer; text-align: left; }
.city-list li b { color: var(--ink); font-weight: 600; }
.city-list li[aria-selected="true"], .city-list li:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.city-list li.none { cursor: default; color: var(--ink-3); background: none; }
.form-note { margin: 10px 18px 0; font: 500 14px/1.4 var(--sans); color: #f3c9a3; }
.form-note:empty { display: none; }
.reveal-btn { width: calc(100% - 12px); margin: 10px 6px 6px; min-height: 60px; font-size: 17px; }
.privacy-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 12px 0 10px; text-align: center; }
.privacy-note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
@media (min-width: 1000px) { .skyread-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 60px; } .sky-form { justify-self: end; } }

.skyread-result { margin-top: 60px; display: grid; gap: 40px; }
.big3 { display: grid; gap: 16px; }
.sign-card { position: relative; border-radius: 30px; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end;
  background: #06070d; box-shadow: 0 40px 90px -50px #000, inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(30px) scale(.98); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.sign-card.in { opacity: 1; transform: none; }
.sign-card .art { position: absolute; inset: 0; }
.sign-card .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); transition: transform 6s var(--ease); }
.sign-card.in .art img { transform: none; }
.sign-card .art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 11, .1) 0%, rgba(5, 6, 11, 0) 30%, rgba(5, 6, 11, .75) 56%, rgba(5, 6, 11, .97) 72%); }
.sign-card .body { position: relative; padding: 26px 24px 26px; }
.sign-card .who { margin: 0; font: 500 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); }
.sign-card .name { margin: 8px 0 0; display: flex; align-items: baseline; gap: 12px; font: 400 clamp(46px, 12vw, 64px)/1 var(--display); letter-spacing: -.02em; }
.sign-card .name .g { font-size: .5em; color: var(--ink-2); }
.sign-card .line { margin: 14px 0 0; font: 400 16.5px/1.55 var(--sans); color: var(--ink-2); }
.sign-card.muted .name { font-size: 34px; color: var(--ink-2); }
/* l'Ascendant qu'on ne peut pas encore calculer : une invitation compacte, pas une grande image vide */
.sign-card.muted { min-height: 0; justify-content: flex-start; }
.sign-card.muted .art { position: relative; inset: auto; height: 150px; }
.sign-card.muted .art::after { background: linear-gradient(180deg, rgba(5, 6, 11, 0) 30%, rgba(5, 6, 11, .95) 100%); }
.sign-card.muted .body { padding-top: 8px; }
.sign-card .add { margin-top: 18px; }
.sign-card .choice { margin: 10px 0 0; font: 500 14px/1.45 var(--sans); color: var(--ink-3); }
.sky-bottom { display: grid; gap: 30px; align-items: center; }
.wheel-wrap { margin: 0 auto; width: min(100%, 440px); aspect-ratio: 1; }
.wheel { width: 100%; height: 100%; overflow: visible; }
.wheel .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: trace 1.8s var(--ease) forwards; animation-delay: var(--delay, 0s); }
.wheel .fade { opacity: 0; animation: appear .8s var(--ease) forwards; animation-delay: var(--delay, 0s); }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.sky-more { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--ink-2); max-width: 30em; }
.sky-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (min-width: 1000px) { .big3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sign-card { min-height: 600px; } .sign-card.muted { min-height: 600px; } .sky-bottom { grid-template-columns: 440px minmax(0, 1fr); gap: 60px; } }

/* ═══ 6 · Les rituels ═══════════════════════════════════════════════════════════════════════════════════ */
.rituals { padding: 120px 0 110px; }
.letters { margin-top: 56px; display: grid; gap: 30px; align-items: center; }
.letter-scene, .burn-scene { position: relative; margin: 0; border-radius: 30px; overflow: hidden; background: #140d08;
  box-shadow: 0 50px 100px -50px #000, inset 0 0 0 1px rgba(255, 255, 255, .06); }
.letter-scene { aspect-ratio: 1536 / 2350; container-type: inline-size; }
.letter-photo { width: 100%; height: 100%; object-fit: cover; }
.letter-ink { position: absolute; left: 21%; top: 37%; width: 58%; height: 52%; font-family: var(--hand); color: #2a1f19;
  font-size: 6.2cqw; line-height: 1.95; transform: rotate(-.6deg); opacity: .9; mix-blend-mode: multiply; }
.letter-ink p { margin: 0; white-space: nowrap; overflow: hidden; clip-path: inset(0 100% 0 0); }
.letter-ink p.title { font-size: 1.15em; line-height: 1.4; text-align: center; }
.letter-ink p.date { font-size: .9em; line-height: 1.4; text-align: center; margin-bottom: .9em; opacity: .85; }
.letter-ink.writing p { animation: write 1.05s cubic-bezier(.45, .05, .55, .95) forwards; animation-delay: var(--d, 0s); }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .letter-ink p { clip-path: none; } .letter-ink.writing p { animation: none; } }
.burn-scene { aspect-ratio: 9 / 13; }
.burn-scene video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.replay { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
  padding: 0 16px; border-radius: 999px; background: rgba(10, 8, 6, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 13px/1 var(--sans); color: #f6e7d2; }
.replay svg { width: 14px; height: 14px; }
.letter-copy h3, .burn-copy h3, .kab-copy h3 { font-size: clamp(36px, 8vw, 60px); line-height: .98; text-wrap: balance; }
.letter-copy h3 em, .burn-copy h3 em, .kab-copy h3 em { font-style: italic; background: var(--gild); -webkit-background-clip: text; background-clip: text; color: transparent; }
.letter-copy p, .burn-copy p, .kab-copy p { margin: 14px 0 0; font: 400 17px/1.6 var(--sans); color: var(--ink-2); max-width: 30em; }
.letter-copy .next, .burn-copy .next { font: 500 12px/1.5 var(--mono); letter-spacing: .08em; color: var(--ivory); text-transform: uppercase; }
.letters-private { font-weight: 500; color: var(--ink) !important; }
.kabbalah { margin-top: 110px; display: grid; gap: 30px; }
.great { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.great li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
/* les cinq signes dans le même anneau, à la même taille */
.great svg { width: 52px; height: 52px; color: var(--ivory); border: 1px solid var(--line-2); border-radius: 50%; padding: 8px; box-sizing: border-box; overflow: visible; }
.great svg * { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.great .rank { font: 500 11px/1 var(--mono); letter-spacing: .16em; color: var(--ink-4); }
.great b { display: block; margin-top: 6px; font: 400 26px/1.1 var(--display); color: var(--ink); }
.great span.what { display: block; margin-top: 6px; font: 400 15.5px/1.5 var(--sans); color: var(--ink-2); }
.great .draw-in * { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 2.2s var(--ease); }
.great li.in .draw-in * { stroke-dashoffset: 0; }
@media (min-width: 1000px) {
  .letters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px 80px; }
  .letter-scene { width: 100%; max-width: 520px; justify-self: end; }
  .burn-scene { width: 100%; max-width: 520px; grid-column: 2; grid-row: 2; }
  .burn-copy { grid-column: 1; grid-row: 2; justify-self: end; text-align: right; }
  .burn-copy p { margin-left: auto; }
  .kabbalah { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
}

/* ═══ 7 · Et tout le reste ══════════════════════════════════════════════════════════════════════════════ */
.more { padding: 110px 0; }
.bento { margin-top: 50px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tile { position: relative; border-radius: 26px; padding: 22px 20px 22px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
  background: linear-gradient(180deg, #11121c, #0c0d15); border: 1px solid var(--line); overflow: hidden; }
.tile h3 { font-size: clamp(22px, 5.4vw, 30px); line-height: 1.02; text-wrap: balance; }
.tile p { margin: 8px 0 0; font: 400 14.5px/1.45 var(--sans); color: var(--ink-3); }
.tile-mark { display: block; margin-bottom: auto; padding-bottom: 26px; font-size: 26px; line-height: 1; color: var(--ivory); }
.tile-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.tile-mark.mono { font: 500 11px/1 var(--mono); letter-spacing: .14em; padding-top: 6px; }
.listen-tile, .heavens-tile { grid-column: 1 / -1; min-height: 240px; justify-content: flex-end; background: radial-gradient(120% 120% at 100% 0%, rgba(150, 140, 255, .18), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); }
.tile-play { position: absolute; top: 20px; left: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #0a0a12; box-shadow: 0 10px 30px -10px rgba(236, 220, 192, .6); }
.tile-play svg { width: 18px; height: 18px; }
.tile-play .i-pause, .tile-play.playing .i-play { display: none; }
.tile-play.playing .i-pause { display: block; }
.wave { position: absolute; top: 30px; left: 96px; right: 20px; height: 36px; display: flex; align-items: center; gap: 4px; }
.wave i { flex: 1; height: var(--h, 30%); border-radius: 3px; background: var(--ink-4); transition: height .2s, background .2s; }
.listen-tile.playing .wave i { background: var(--ivory); animation: bars 1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.15s; }
@keyframes bars { 0%, 100% { height: 20%; } 50% { height: 95%; } }
.heavens { position: absolute; top: 20px; left: 20px; right: 20px; height: 112px; }
.heavens::before { content: ""; position: absolute; left: 17px; right: 17px; bottom: 17px; height: 78px;
  background: linear-gradient(to bottom right, transparent calc(50% - .6px), rgba(236, 220, 192, .22) 50%, transparent calc(50% + .6px)); }
.heavens i { position: absolute; left: calc(var(--k) * (100% - 34px) / 8); bottom: calc(var(--k) * 78px / 8); width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 16px; line-height: 1;
  color: var(--ink-4); background: #0b0c16; border: 1px solid var(--line-2); }
.heavens i:nth-child(-n+3) { color: #0a0a12; background: var(--ivory); border-color: var(--ivory); box-shadow: 0 0 22px rgba(236, 220, 192, .45); }
.heavens i:nth-child(4) { color: var(--ivory); border-color: rgba(236, 220, 192, .7); box-shadow: 0 0 0 4px rgba(236, 220, 192, .08); }
@media (max-width: 599px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tile:not(.listen-tile):not(.heavens-tile) { min-height: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 20px; }
  .tile:not(.listen-tile):not(.heavens-tile) .tile-mark { grid-row: span 2; margin: 2px 0 0; padding: 0; }
  .tile:not(.listen-tile):not(.heavens-tile) h3 { font-size: 25px; }
  .tile:not(.listen-tile):not(.heavens-tile) p { margin-top: 6px; }
  .tile-mark.mono { font-size: 11px; line-height: 1.5; letter-spacing: .1em; padding-top: 4px; }
  .heavens-tile { min-height: 270px; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .listen-tile { grid-column: span 2; grid-row: span 2; min-height: 420px; }
  .tile { min-height: 210px; padding: 28px; }
  .bento .heavens-tile { grid-column: span 2; min-height: 280px; }
  .bento .tile:nth-child(5), .bento .tile:nth-child(6) { grid-column: span 2; min-height: 0; }
  .tile-play, .heavens { top: 26px; left: 28px; }
  .listen-tile .wave { top: 36px; left: 110px; right: 28px; }
}

/* ═══ 8 · Questions ═════════════════════════════════════════════════════════════════════════════════════ */
.faq { padding: 110px 0; }
.faq-grid { display: grid; gap: 34px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; text-wrap: balance;
  font: 500 clamp(18px, 4.4vw, 21px)/1.35 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.faq h2 { text-wrap: balance; font-size: clamp(44px, 6vw, 76px); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 1.5px 14px no-repeat;
  transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 24px; color: var(--ink-2); font: 400 16.5px/1.6 var(--sans); max-width: 38em; }

/* ═══ 9 · L'app ═════════════════════════════════════════════════════════════════════════════════════════ */
.finale { padding: 100px 0 90px; text-align: center; overflow: clip; }
.finale .wrap { display: grid; justify-items: center; }
.finale h2 { font-size: clamp(56px, 15vw, 150px); max-width: none; }
.moon.big { width: clamp(170px, 46vw, 280px); height: auto; aspect-ratio: 1; margin-bottom: 40px; filter: drop-shadow(0 0 70px rgba(220, 225, 255, .28)); }
.finale .lead { margin-left: auto; margin-right: auto; }
.finale .get { justify-content: center; margin-top: 34px; }
.finale .get[data-soon] { align-items: center; }
.tonight { margin: 44px 0 0; display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.moon.tiny { width: 22px; height: 22px; flex: none; }

/* sur un téléphone : moins de nuit vide entre les parties, la Lune de « ce soir » au-dessus de sa phrase */
@media (max-width: 999px) {
  .skyread, .rituals { padding: 84px 0 70px; }
  .kabbalah { margin-top: 72px; }
  .more, .faq { padding: 80px 0; }
  .finale { padding: 70px 0 80px; }
  .tonight { flex-direction: column; text-align: center; gap: 12px; }
}
