.flow-section, .share-section { background-color: #f5f5fc; }

.flow-section {
    background-image: radial-gradient(ellipse 85% 70% at 18% 25%, #fefeff, transparent);
    scroll-margin-top: 12px;
}

.flow-layout {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    align-items: center;
    gap: clamp(22px, 2vw, 31px);
    width: min(1424px, calc(100% - 8vw));
    margin-inline: auto;
    padding-block: clamp(35px, 3.15vw, 49px) clamp(29px, 2.65vw, 41px);
}

.flow-copy h2, .share-copy h2 {
    font-size: clamp(40px, 3.95vw, 61px);
    font-weight: 750;
    line-height: 1.04;
    letter-spacing: -.051em;
}

.flow-steps { margin: 17px 0 0; padding: 0; list-style: none; }
.flow-steps li + li { border-top: 1px solid #d5dcfc; }

.flow-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(15px, 1.95vw, 30px);
    width: 100%;
    padding: clamp(15px, 1.45vw, 22px) 0;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: start;
    cursor: pointer;
}

.flow-step:disabled { cursor: default; }
.flow-step:focus-visible { outline-offset: 2px; border-radius: 10px; }

.flow-icon {
    display: grid;
    place-items: center;
    width: clamp(58px, 5.47vw, 84px);
    aspect-ratio: 84 / 77;
    border-radius: 23%;
    background: linear-gradient(145deg, #f0efff, #dfddfb);
    transition: transform .3s, box-shadow .3s;
}

.flow-icon img, .scene-link img {
    width: 62%;
    height: auto;
    filter: invert(17%) sepia(79%) saturate(7150%) hue-rotate(247deg) brightness(94%) contrast(96%);
}

.flow-steps li:nth-child(2) .flow-icon,
.scene-link:nth-child(2) > span { background: linear-gradient(145deg, #e6fcfd, #c8f5fc); }
.flow-steps li:nth-child(2) img,
.scene-link:nth-child(2) img { filter: invert(45%) sepia(89%) saturate(1558%) hue-rotate(152deg) brightness(91%) contrast(103%); }
.flow-step:hover:not(:disabled) .flow-icon,
.flow-step[aria-pressed="true"] .flow-icon {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgb(69 70 246 / .21), 0 8px 21px rgb(64 76 196 / .18);
}

.flow-step strong, .flow-step strong + span { display: block; }
.flow-step strong { font-size: clamp(21px, 1.9vw, 29px); font-weight: 750; letter-spacing: -.047em; line-height: 1.13; }
.flow-step strong + span { margin-top: 6px; color: var(--muted); font-size: clamp(15px, 1.31vw, 20px); letter-spacing: -.025em; line-height: 1.35; }

.flow-scene {
    position: relative;
    isolation: isolate;
    aspect-ratio: 825 / 450;
    container-type: inline-size;
    overflow: clip;
    border-radius: 18% 10% 13% 21% / 29% 17% 17% 32%;
    background: #e0f2fe;
}

.section-backdrop { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.scene-card {
    position: absolute;
    display: grid;
    border: .48cqw solid rgb(255 255 255 / .94);
    border-radius: 3cqw;
    background: linear-gradient(148deg, #fcfdff, #eff5fd);
    box-shadow: 0 1.6cqw 3.1cqw rgb(59 103 207 / .27), inset 0 0 1.3cqw rgb(255 255 255 / .9);
    transform: rotate(-5.5deg) skewX(-4deg);
    transition: box-shadow .45s ease;
}

.scene-calendar { top: 17%; left: 3%; width: 38%; padding: 2.75cqw 2.3cqw 2.2cqw; }
.scene-calendar .calendar-grid { gap: .42cqw; }
.scene-calendar .calendar-slot { position: relative; }
.scene-selected img { opacity: 0 !important; }

.scene-selected::after {
    content: '';
    position: absolute;
    inset: -13% -17%;
    z-index: 1;
    border: 1px solid rgb(255 255 255 / .75);
    border-radius: 1.15cqw;
    background: linear-gradient(155deg, #796eff, #3b2eee 65%, #2918b9);
    box-shadow: inset 0 .25cqw 1cqw #aba2ff, 0 .65cqw 1.5cqw #7664f793, -.9cqw .7cqw 0 #a9a4fc5c;
    transform: scale(var(--slot-scale, 1));
    transition: transform .38s cubic-bezier(.2, .8, .25, 1.35);
}

.flow-scene[data-flow-step="0"] .scene-selected { --slot-scale: 1.12; }
.scene-booking { top: 25%; left: 32%; width: 35%; padding: 0; }
.scene-links { top: 43%; left: 65%; width: 31%; padding: 2.4cqw 2.7cqw; }
.scene-link { display: grid; grid-template-columns: 6.6cqw 1fr; align-items: center; gap: 1.8cqw; padding-block: .45cqw; }
.scene-link + .scene-link { margin-top: 1.25cqw; padding-top: 1.55cqw; border-top: 1px solid #d5def5; }
.scene-link > span { display: grid; place-items: center; aspect-ratio: 1.1; border-radius: 1.5cqw; background: #e1ebfc; }
.scene-link i, .sample-site i, .bio-links i { display: block; border-radius: 7px; background: linear-gradient(120deg, #dce6f9, #cbd8f2); }
.scene-link i { height: 2.65cqw; border-radius: 1.2cqw; }

.flow-scene[data-flow-step="0"] .scene-calendar,
.flow-scene[data-flow-step="1"] .scene-booking,
.flow-scene[data-flow-step="2"] .scene-links {
    box-shadow: 0 1.7cqw 3.6cqw rgb(56 89 207 / .33), 0 0 2.3cqw rgb(170 245 255 / .82), inset 0 0 1.3cqw rgb(255 255 255 / .9);
}

.flow-path { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.booking-preview {
    display: grid;
    align-content: start;
    gap: .65em;
    min-width: 0;
    padding: 1.1em;
    border-radius: 1.4em;
    color: var(--ink);
    background: linear-gradient(145deg, #fdfdff, #f9fbff);
    font: 650 2.05cqw/1.13 Geist, system-ui, sans-serif;
    letter-spacing: -.04em;
}

.scene-booking .booking-preview { padding: 1.13em; }
.preview-profile, .preview-fee, .preview-deposit { display: flex; align-items: center; gap: .65em; }
.preview-profile { gap: .72em; }
.preview-profile img { flex: 0 0 auto; width: 2.95em; height: auto; border-radius: .57em; }
.preview-profile strong { display: block; font-size: 1.31em; font-weight: 750; white-space: nowrap; }
.preview-profile span { display: block; margin-top: .28em; color: var(--muted); font-size: .88em; font-weight: 540; }
.preview-fee img { flex: 0 0 auto; width: 1.32em; height: auto; }
.preview-deposit { padding: .53em .54em; border-radius: .6em; background: #cef7fc; }
.preview-deposit img { flex: 0 0 auto; width: 1.32em; height: auto; }
.preview-deposit span { font-size: .77em; }

.preview-action {
    display: grid;
    place-items: center;
    min-height: 2.55em;
    padding: .35em .32em;
    border-radius: .8em;
    color: white;
    background: linear-gradient(165deg, #5047ff, #3426e7 55%, #3022ce);
    box-shadow: inset 0 .2em .42em rgb(156 148 255 / .26);
    font-weight: 650;
    text-align: center;
}

.share-section {
    position: relative;
    isolation: isolate;
    overflow: clip;
}

.share-section > .section-backdrop {
    mask-image: linear-gradient(to bottom, transparent, #000 clamp(120px, 28%, 180px));
}

.share-layout {
    display: grid;
    grid-template-columns: minmax(0, 55.5fr) minmax(0, 44.5fr);
    grid-template-areas: 'preview copy';
    gap: clamp(28px, 4.32vw, 67px);
    align-items: start;
    width: min(1380px, calc(100% - 9vw));
    margin-inline: auto;
    padding-block: clamp(23px, 1.8vw, 28px) clamp(33px, 3.2vw, 49px);
}

.share-copy { grid-area: copy; padding-top: clamp(26px, 3.1vw, 48px); }
.share-copy h2 { max-width: 610px; font-size: clamp(34px, 3.1vw, 48px); line-height: 1.09; }
.share-copy p { max-width: 570px; margin-top: clamp(17px, 1.65vw, 26px); color: var(--muted); font-size: clamp(18px, 1.77vw, 27px); line-height: 1.24; letter-spacing: -.025em; }

.share-previews {
    grid-area: preview;
    display: grid;
    grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
    gap: clamp(9px, 1vw, 16px);
    align-items: center;
    margin-left: clamp(0px, 2.55vw, 39px);
    container-type: inline-size;
}

.bio-preview {
    padding: .8cqw;
    border: .35cqw solid #dce5f8;
    border-radius: 6cqw;
    background: #fcfdff;
    box-shadow: 0 1.4cqw 3.5cqw #526cbd3e, inset 0 0 .55cqw #c7d6ed;
}

.bio-screen {
    aspect-ratio: 203 / 397;
    padding: 1.2cqw 1.85cqw 2cqw;
    border: 1px solid #a7bbe0;
    border-radius: 4.5cqw;
    background: linear-gradient(180deg, transparent, #fbfcff 32%), url('../images/accueil/hero-sillage.webp') top center / 160% auto no-repeat;
    color: var(--ink);
    text-align: center;
}

.bio-camera { display: block; width: 26%; height: 1.65cqw; margin: 0 auto 3cqw; border-radius: 8px; background: #9cc6f0; }
.bio-logo { width: 32%; height: auto; margin: 0 auto .8cqw; border-radius: 28%; }
.bio-screen > strong { display: block; font-size: 3.22cqw; font-weight: 760; letter-spacing: -.055em; }
.bio-motif { display: block; margin-top: .35cqw; color: var(--muted); font-size: 2.26cqw; font-weight: 530; letter-spacing: -.035em; }
.bio-screen .preview-action { margin: 2.6cqw 0 2.45cqw; font-size: 2.06cqw; letter-spacing: -.028em; }
.bio-links { display: grid; gap: 1.06cqw; }
.bio-links > span { display: flex; align-items: center; gap: 1.7cqw; padding: 1.18cqw 1.9cqw; border: 1px solid #e5ebfa; border-radius: 1.9cqw; background: #f8f9fe; box-shadow: 0 .35cqw .7cqw #4a5f9e10; }
.bio-links img { width: 3.02cqw; height: auto; }
.bio-links i { height: 1.8cqw; width: 66%; }

.site-preview {
    overflow: hidden;
    border: .72cqw solid #fcfdff;
    border-radius: 3.4cqw;
    background: #f2f6fe;
    box-shadow: 0 1.75cqw 3.7cqw #526cbd48, 0 0 0 1px #d7e2f8;
}

.site-preview-bar { display: flex; align-items: center; gap: 1cqw; padding: 1.5cqw 1.85cqw; border-bottom: 2.2cqw solid #e6eefb; background: #f8faff; }
.site-preview-bar i { width: 1.4cqw; aspect-ratio: 1; border-radius: 50%; background: #b1c0df; }
.site-preview-bar i:nth-child(2) { background: #c5d2ea; }
.site-preview-body { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); gap: 2.6cqw; padding: 2.65cqw 2.85cqw 3.05cqw; }
.sample-site > div { aspect-ratio: 1.73; margin-bottom: 2.65cqw; border-radius: 1.7cqw; background: linear-gradient(135deg, #d5eefbad, #cdd5f889), url('../images/accueil/fonctionnement-fond.webp') center / cover; }
.sample-site i { height: 1.85cqw; margin-top: 1.75cqw; width: 96%; }
.sample-site i:nth-child(3) { width: 86%; }
.sample-site i:nth-child(4) { width: 62%; }
.site-preview .booking-preview { border: 1px solid #e4eafb; box-shadow: 0 .7cqw 1.8cqw #526cbd20; font-size: 1.98cqw; }
.site-preview .preview-deposit { gap: .42em; }
.site-preview .preview-deposit span { font-size: .71em; }

@media (min-width: 1300px) {
    .flow-layout { width: auto; max-width: 1440px; margin-inline: max(4.2vw, calc((100% - 1424px) / 2)) max(3vw, calc((100% - 1440px) / 2)); }
    .share-layout { width: auto; max-width: 1420px; margin-inline: max(4.5vw, calc((100% - 1400px) / 2)) max(3vw, calc((100% - 1440px) / 2)); }
}

@media (max-width: 960px) {
    .flow-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; width: min(760px, calc(100% - 56px)); padding-bottom: 38px; }
    .flow-steps { margin-top: 11px; }
    .share-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'preview'; width: min(760px, calc(100% - 56px)); }
    .share-copy { padding-top: 8px; }
    .share-previews { margin-left: 0; }
}

@media (max-width: 520px) {
    .flow-layout, .share-layout { width: calc(100% - 36px); }
    .flow-copy h2, .share-copy h2 { font-size: clamp(30px, 9vw, 40px); }
    .flow-step { gap: 13px; padding-block: 15px; }
    .flow-icon { width: 47px; }
    .flow-step strong { font-size: 19px; }
    .flow-step strong + span { font-size: 15px; margin-top: 4px; }
    .share-copy p { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .flow-step:hover:not(:disabled) .flow-icon, .flow-step[aria-pressed="true"] .flow-icon { transform: none; }
    .scene-selected::after { transform: none; }
}
