body.apple-steps-page { --page-background: url('../../20_ASSETS/00_IMAGES/background_4k_v2.webp'); }
.apple-step { height: calc(100svh - var(--header-height,92px)); min-height: 320px; padding: 16px; display: grid; place-items: center; scroll-margin-top: var(--header-height,92px); }
.apple-step-card { display: grid; grid-template-rows: auto minmax(0,1fr); gap: 16px; height: 100%; width: min(100%,max(260px,calc((100svh - var(--header-height,92px) - 132px) * .5625 + 48px))); max-width: 640px; min-height: 0; padding: 20px 24px; border: 1px solid #ffffff20; border-radius: 20px; background: #202020; }
.apple-step-card h2 { margin: 0; text-align: left; font-size: clamp(22px,2.5vw,28px); line-height: 1.3; }
.apple-step-number { color: var(--orange); }
.apple-step-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
@media(max-width:380px) { .apple-step-card { padding-inline: 16px; } }

.apple-step-visual { position: relative; width: 100%; height: 100%; min-height: 0; }
.apple-step-arrow { position: absolute; width: clamp(22px,9vw,42px); height: auto; transform: translate(-100%,-50%); pointer-events: none; color: var(--orange); filter: drop-shadow(0 1px 2px #000c); }
.apple-step-arrow[hidden] { display: none; }
.apple-step-arrow svg { display: block; width: 100%; height: auto; overflow: visible; animation: apple-step-point 1.2s ease-in-out infinite alternate; }
@keyframes apple-step-point { from { transform: translateX(-6px); } to { transform: translateX(0); } }
@media(prefers-reduced-motion:reduce) { .apple-step-arrow svg { animation: none; } }

.apple-step-arrow { --arrow-size: clamp(36px,11vw,64px); --point-x: -18px; --point-y: 0px; width: var(--arrow-size); }
.apple-step-arrow[data-direction="left"] { transform: translate(0,-50%); --point-x: 18px; }
.apple-step-arrow[data-direction="down"] { width: calc(var(--arrow-size) * .5); transform: translate(-50%,-100%); --point-x: 0px; --point-y: -18px; }
.apple-step-arrow svg { animation-duration: .9s; }
@keyframes apple-step-point { from { transform: translate(var(--point-x),var(--point-y)); } to { transform: translate(0,0); } }

/* The fixed return control does not reserve space above the steps. */
body.apple-steps-page { --apple-return-space: 0px; }
.apple-steps-page .guide-return-row { position: fixed; top: var(--header-height,92px); right: 0; left: 0; height: auto; }
.apple-step {
    height: calc(100svh - var(--header-height,92px) - var(--apple-return-space));
    padding: 12px 16px;
    scroll-margin-top: calc(var(--header-height,92px) + var(--apple-return-space));
}
.apple-step-card {
    width: min(100%,max(260px,calc((100svh - var(--header-height,92px) - var(--apple-return-space) - 132px) * .5625 + 48px)));
}
.apple-steps-page .back-to-top { right: 16px; width: 52px; height: 52px; min-height: 52px; font-size: 28px; }
@media (max-width: 600px) {
    .apple-step { padding: 10px 12px; }
    .apple-steps-page .back-to-top { right: 12px; width: 30px; height: 30px; min-height: 30px; font-size: 16px; }
}
@media (max-width: 600px) {
    .apple-steps-page .guide-return-row .Comp_10_Button_Cercle_Icon_Style_1 { width: 30px; height: 30px; font-size: 18px; border-width: 2px; }
    .apple-steps-page .guide-return-row .Comp_10_Button_Cercle_Icon_Style_1 svg { width: 16px; height: 16px; }
}
html:has(body.apple-steps-page) {
    scroll-snap-type: y proximity;
    scroll-padding-top: var(--header-height,92px);
}
.apple-steps-page .apple-step {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: 0;
}
.apple-steps-page .guide-return-row { left: auto; right: 6px; width: auto; max-width: none; margin-inline: 0; padding-inline: 0; }
