/* ===== Apolonya · Accueil 2 — constellation, une journée racontée par le soleil, crépuscule ===== */

/* ---- 1. Constellation ---- */
.apo-h2-hero { position: relative; height: 100vh; min-height: 740px; overflow: hidden; text-align: center; background: linear-gradient(180deg, #fbf4e8 0%, #f7e4cb 58%, #f1d3ae 100%); }
.apo-h2-sun { position: absolute; left: 50%; top: 46%; width: min(76vw, 920px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #f6c79a 0%, rgba(246, 199, 154, .5) 38%, rgba(246, 199, 154, 0) 68%); animation: apo-h2-breathe 9s ease-in-out infinite; }
@keyframes apo-h2-breathe { 50% { transform: translate(-50%, -50%) scale(1.07); opacity: .86; } }
.apo-h2-pre { position: absolute; z-index: 3; top: clamp(112px, 15.5vh, 150px); left: 0; right: 0; font: 400 11px/1.6 var(--v-sans); letter-spacing: .44em; text-transform: uppercase; color: var(--v-gold-t); }
.apo-h2-arch { position: absolute; z-index: 2; left: 50%; top: clamp(150px, 22vh, 200px); width: clamp(210px, 20vw, 330px); aspect-ratio: 3 / 4.15; margin: 0 0 0 calc(clamp(210px, 20vw, 330px) / -2); overflow: hidden; border-radius: 999px 999px 0 0; background: var(--v-sand); box-shadow: 0 60px 100px -50px rgba(110, 60, 30, .6); animation: apo-h2-rise 1.4s .15s var(--v-ease) both; }
.apo-h2-arch video, .apo-h2-arch img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; }
@keyframes apo-h2-rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.apo-vow .apo-h2-word { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(74px, 11.5vh, 122px); margin: 0; font-family: var(--v-serif) !important; font-weight: 400 !important; font-size: clamp(60px, 14.6vw, 250px) !important; line-height: .9; letter-spacing: .05em; text-transform: uppercase !important; color: var(--v-ink) !important; text-shadow: 0 0 50px rgba(251, 243, 230, .65); animation: apo-h2-rise 1.5s .5s var(--v-ease) both; }
.apo-h2-rot { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(22px, 4.2vh, 44px); display: flex; justify-content: center; align-items: baseline; gap: .5em; margin: 0; font: italic 400 clamp(20px, 2vw, 30px)/1.2 var(--v-serif); color: var(--v-ink); animation: apo-h2-rise 1.4s 1s var(--v-ease) both; }
.apo-h2-rot-w { display: inline-grid; text-align: left; min-width: 5.5em; }
.apo-h2-rw { grid-area: 1 / 1; opacity: 0; transform: translateY(.4em); transition: opacity .8s var(--v-ease), transform 1s var(--v-ease); font: 400 1.55em/.9 var(--v-script); color: #b0583e; }
.apo-h2-rw.is-on { opacity: 1; transform: none; }
.apo-h2-sats { display: contents; }
.apo-h2-sat { position: absolute; z-index: 4; left: var(--x); top: var(--y); width: var(--w); display: block; transform: translate(-50%, -50%) translate3d(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * 1px), 0); color: var(--v-ink); animation: apo-h2-pop 1.2s calc(.7s + var(--i) * .12s) var(--v-ease) both; }
@keyframes apo-h2-pop { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
.apo-h2-sat-pic { position: relative; display: block; overflow: hidden; border: 6px solid #fff8ee; background: var(--v-sand); box-shadow: 0 34px 60px -30px rgba(110, 60, 30, .55); animation: apo-h2-bob 8s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); transition: transform .8s var(--v-ease), box-shadow .8s var(--v-ease); }
@keyframes apo-h2-bob { 50% { transform: translateY(-10px) rotate(.8deg); } }
.apo-h2-sat-pic img { height: 100% !important; transition: transform 1.6s var(--v-ease); }
.apo-h2-s-arch .apo-h2-sat-pic { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }
.apo-h2-s-circle .apo-h2-sat-pic { aspect-ratio: 1; border-radius: 50%; }
.apo-h2-s-pill .apo-h2-sat-pic { aspect-ratio: 4 / 3; border-radius: 999px; }
.apo-h2-sat:hover .apo-h2-sat-pic, .apo-h2-sat:focus-visible .apo-h2-sat-pic { transform: scale(1.1); box-shadow: 0 50px 80px -30px rgba(110, 60, 30, .7); }
.apo-h2-sat:hover img { transform: scale(1.12); }
.apo-h2-sat-t { position: absolute; left: 50%; top: 100%; width: max-content; margin-top: 10px; transform: translateX(-50%); text-align: center; }
.apo-h2-sat-t b { display: block; font: 400 clamp(18px, 1.5vw, 24px)/1.1 var(--v-serif); color: var(--v-ink); text-shadow: 0 0 18px rgba(251, 243, 230, .9); }
.apo-h2-sat-t em { display: block; margin-top: 4px; font: 400 10px/1 var(--v-sans); font-style: normal; letter-spacing: .28em; text-transform: uppercase; color: #b0583e; opacity: 0; transform: translateY(5px); transition: opacity .5s, transform .5s var(--v-ease); }
.apo-h2-sat:hover em, .apo-h2-sat:focus-visible em { opacity: 1; transform: none; }
.apo-h2-sat:focus-visible { outline: 2px solid #b0583e; outline-offset: 8px; }
.apo-h2-scroll { position: absolute; z-index: 5; right: 4vw; bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 400 10px/1 var(--v-sans); letter-spacing: .34em; text-transform: uppercase; color: var(--v-ink-2); writing-mode: vertical-rl; }
.apo-h2-scroll i { width: 1px; height: 46px; background: var(--v-ink-2); animation: apo-v-drop 2.4s var(--v-ease) infinite; transform-origin: top; }

/* ---- 2. The day ---- */
.apo-h2-day { position: relative; background: #5a3a2a; }
.apo-h2-track { position: relative; height: calc(var(--n) * 100vh); }
.apo-h2-stage { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden; z-index: 5; color: #fff; background: #5a3a2a; --tint: transparent; }
.apo-h2-day.is-fixed .apo-h2-stage { position: fixed; }
.apo-h2-day.is-end .apo-h2-stage { top: auto; bottom: 0; }
.apo-h2-bgs, .apo-h2-bg { position: absolute; inset: 0; }
.apo-h2-bg { opacity: 0; transition: opacity 1.3s var(--v-ease); }
.apo-h2-bg.is-on { opacity: 1; }
.apo-h2-bg img { height: 100% !important; transform: scale(1.1); transition: transform 9s linear; }
.apo-h2-bg.is-on img { transform: scale(1); }
.apo-h2-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(72, 44, 26, .46) 0%, rgba(72, 44, 26, .08) 38%, rgba(72, 44, 26, .7) 100%); }
.apo-h2-stage::after { content: ''; position: absolute; inset: 0; background: var(--tint); mix-blend-mode: soft-light; transition: background 1.2s var(--v-ease); pointer-events: none; }
.apo-h2-clock { position: absolute; z-index: 2; top: clamp(98px, 14.5vh, 142px); left: 50%; width: min(700px, 88vw); transform: translateX(-50%); text-align: center; pointer-events: none; }
.apo-h2-arc { display: block; width: 100%; height: auto; overflow: visible; }
.apo-h2-arc-line { stroke: rgba(255, 255, 255, .6); stroke-width: 1.6; stroke-dasharray: 2 8; stroke-linecap: round; }
.apo-h2-orb { fill: #fff6df; filter: drop-shadow(0 0 14px rgba(255, 214, 150, .95)) drop-shadow(0 0 40px rgba(255, 190, 110, .8)); }
.apo-h2-time { margin-top: -10px; font: 400 clamp(48px, 7.2vw, 118px)/1 var(--v-serif); font-variant-numeric: tabular-nums; letter-spacing: .03em; text-shadow: 0 2px 40px rgba(60, 36, 20, .55); }
.apo-h2-caps { position: absolute; z-index: 3; left: 6vw; bottom: clamp(96px, 15vh, 140px); width: min(600px, 88vw); height: 300px; }
.apo-h2-scene { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(26px); transition: opacity .9s var(--v-ease), transform 1.1s var(--v-ease); pointer-events: none; }
.apo-h2-scene.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .25s; }
.apo-h2-scene-n b { font-weight: inherit; }
.apo-h2-scene-n { display: block; margin-bottom: 14px; font: 400 11px/1 var(--v-sans); letter-spacing: .4em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 14px rgba(60, 36, 20, .7); }
.apo-vow .apo-h2-scene h2.apo-v-h { margin: 0 0 .35em; font-size: clamp(36px, 5vw, 76px); line-height: 1.04; color: #fff !important; text-shadow: 0 2px 40px rgba(60, 36, 20, .55); }
.apo-vow .apo-h2-scene h2.apo-v-h em { color: #ffe3b8; }
.apo-vow .apo-h2-scene p { max-width: 480px; margin: 0 0 22px; font: 400 clamp(15px, 1.15vw, 18px)/1.65 var(--v-sans); color: rgba(255, 255, 255, .96); text-shadow: 0 1px 16px rgba(60, 36, 20, .8); }
.apo-h2-scene-go { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border: 1px solid #fff; border-radius: 999px; font: 400 11px/1 var(--v-sans); letter-spacing: .26em; text-transform: uppercase; color: #fff; transition: background .4s, color .4s; }
.apo-h2-scene-go::after { content: '→'; margin-left: 12px; letter-spacing: 0; }
.apo-h2-scene-go:hover { background: #fff; color: #7a4a30; }
.apo-h2-ticks { position: absolute; z-index: 3; left: 6vw; right: 6vw; bottom: 26px; display: flex; justify-content: space-between; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .45); }
.apo-h2-ticks::before { content: ''; position: absolute; left: 0; top: -2px; height: 3px; width: calc(var(--p, 0) * 100%); background: #fff; }
.apo-vow .apo-h2-tick { position: relative; padding: 14px 4px 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; cursor: pointer; color: rgba(255, 255, 255, .62); transition: color .4s; }
.apo-h2-tick b { display: block; font: italic 400 clamp(17px, 1.5vw, 22px)/1 var(--v-serif); }
.apo-h2-tick span { display: block; margin-top: 6px; font: 400 9.5px/1 var(--v-sans); letter-spacing: .26em; text-transform: uppercase; }
.apo-h2-tick.is-on, .apo-h2-tick:hover { color: #fff; }
.apo-h2-tick:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- 3. Dusk ---- */
.apo-h2-end { position: relative; overflow: hidden; z-index: 6; text-align: center; color: #fff; background: linear-gradient(180deg, #d9a06f 0%, #c97e59 36%, #b0604a 78%, #8e4a3f 100%); padding: clamp(120px, 20vh, 220px) 6vw 0; }
.apo-h2-end::before { content: ''; position: absolute; left: 50%; top: 18%; width: min(80vw, 900px); aspect-ratio: 1; transform: translate(-50%, 0); border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 180, .6) 0%, rgba(255, 210, 160, .25) 40%, rgba(255, 220, 170, 0) 68%); pointer-events: none; }
.apo-h2-end-in { position: relative; }
.apo-h2-end-pre { display: block; margin-bottom: 22px; font: 400 11px/1.5 var(--v-sans); letter-spacing: .44em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 18px rgba(110, 60, 30, .6); }
.apo-vow .apo-h2-end-t { margin: 0 0 .3em; font: 400 clamp(54px, 11vw, 190px)/.98 var(--v-serif); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 50px rgba(110, 60, 30, .45); }
.apo-h2-end-t em { font-family: var(--v-script); font-style: normal; font-size: 1.25em; line-height: .6; color: #fff3da; }
.apo-vow .apo-h2-end-p { max-width: 560px; margin: 0 auto 38px; font: 400 clamp(16px, 1.3vw, 20px)/1.7 var(--v-sans); color: #fff; text-shadow: 0 1px 16px rgba(110, 60, 30, .6); }
.apo-h2-end-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.apo-vow .apo-h2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 32px; border: 1px solid #fff; border-radius: 999px; color: #fff; font: 400 11px/1 var(--v-sans); letter-spacing: .26em; text-transform: uppercase; transition: background .4s, color .4s; }
.apo-vow .apo-h2-btn span::after { content: none; }
.apo-vow .apo-h2-btn:hover { background: #fff; color: #8e4a3f; }
.apo-vow .apo-h2-btn-main { background: #fff; color: #8e4a3f; }
.apo-vow .apo-h2-btn-main:hover { background: transparent; color: #fff; }
.apo-h2-foot { position: relative; margin-top: clamp(100px, 16vh, 180px); padding: 40px 0 40px; border-top: 1px solid rgba(255, 255, 255, .4); }
.apo-h2-foot-name { display: block; font: 400 clamp(26px, 3vw, 40px)/1 var(--v-serif); letter-spacing: .5em; text-transform: uppercase; color: #fff; padding-left: .5em; }
.apo-vow .apo-h2-foot p { margin: 14px 0 12px; font: 400 12px/1.6 var(--v-sans); letter-spacing: .12em; color: rgba(255, 255, 255, .92); }
.apo-h2-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 30px; }
.apo-vow .apo-h2-foot .apo-v-foot-link { color: #fff; }
.apo-vow .apo-h2-foot .apo-v-foot-link span::after { background: #fff; }

@media (max-width: 800px) {
  .apo-h2-hero { height: auto; min-height: 0; padding: 112px 20px 70px; display: flex; flex-direction: column; align-items: center; }
  .apo-h2-sun { top: 190px; width: 130vw; }
  .apo-h2-pre, .apo-h2-arch, .apo-vow .apo-h2-word, .apo-h2-rot { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; }
  .apo-h2-pre { margin-bottom: 22px; }
  .apo-h2-arch { width: 62vw; margin: 0; }
  .apo-vow .apo-h2-word { margin-top: -26px; font-size: 15vw !important; letter-spacing: .03em; }
  .apo-h2-arch video, .apo-h2-arch img { object-position: 24% 40%; }
  .apo-h2-rot { margin-top: 18px; flex-direction: column; align-items: center; gap: .1em; }
  .apo-h2-rot-w { text-align: center; justify-items: center; min-width: 0; }
  .apo-h2-sats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 12px; width: 100%; margin-top: 46px; position: relative; z-index: 4; }
  .apo-h2-sat { position: static; width: auto; transform: none; animation: none; }
  .apo-h2-sat-pic { animation: none; border-width: 4px; }
  .apo-h2-sat-t { position: static; transform: none; width: auto; margin-top: 8px; }
  .apo-h2-sat-t b { font-size: 16px; }
  .apo-h2-sat-t em { display: none; }
  .apo-h2-scroll { display: none; }
  .apo-h2-caps { left: 22px; width: calc(100vw - 44px); bottom: 118px; }
  .apo-h2-ticks { left: 22px; right: 22px; }
  .apo-h2-tick span { display: none; }
  .apo-h2-time { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .apo-h2-sun, .apo-h2-sat-pic, .apo-h2-scroll i { animation: none; }
  .apo-h2-arch, .apo-vow .apo-h2-word, .apo-h2-rot, .apo-h2-sat { animation: none; opacity: 1; }
  .apo-h2-bg img { transition: none; transform: none; }
}

/* journée de plus de six moments : le bouton flottant monte au-dessus de la ligne des heures */
body:has(.apo-h2-day.is-many) .apo-x-cta { bottom: 92px; }
