.formation-finance-rail {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 18px;
}

/* Shared application-like treatment for the financing journey. */
body {
    background: #f7f8fc;
}

.formation-nav {
    border-bottom: 1px solid #edf0f5;
    box-shadow: 0 8px 24px rgba(22, 28, 45, 0.06);
}

.formation-nav-inner {
    min-height: 92px;
}

.formation-button {
    min-height: 48px;
    border-radius: 14px;
    padding: 12px 19px;
}

.formation-button:hover {
    box-shadow: 0 10px 24px rgba(32, 35, 52, 0.12);
}

.formation-breadcrumb {
    padding-block: 18px;
    color: #73798a;
}

.formation-breadcrumb a {
    color: #444a5c;
    font-weight: 700;
}

.financing-jump-nav {
    position: sticky;
    top: 92px;
    z-index: 20;
    border-block: 1px solid #edf0f5;
    background: rgba(247, 248, 252, 0.94);
    backdrop-filter: blur(12px);
}

.financing-jump-nav-inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-block: 10px;
    scrollbar-width: thin;
}

.financing-jump-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #e1e5ee;
    border-radius: 999px;
    background: #fff;
    color: #42485b;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.financing-jump-nav a:hover,
.financing-jump-nav a:focus-visible {
    border-color: #ec4899;
    color: #be185d;
    box-shadow: 0 7px 18px rgba(236, 72, 153, 0.12);
    transform: translateY(-1px);
}

.financing-jump-nav i {
    color: #ec4899;
}

#aides,
#eligibilite,
#etapes,
#organismes,
#faq {
    scroll-margin-top: 148px;
}

.financing-hero {
    min-height: 0;
    padding-block: 20px 46px;
    border-bottom: 1px solid #e9edf4;
}

.financing-hero-layout {
    gap: clamp(2rem, 5vw, 5.5rem);
}

.financing-hero .formation-hero-content {
    padding-block: 48px 32px;
}

.financing-hero h1 {
    max-width: 620px;
    font-size: clamp(2.5rem, 4.7vw, 4.25rem);
    letter-spacing: -0.02em;
}

.financing-media-frame {
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(33, 38, 58, 0.12);
}

.financing-media-badge {
    border-radius: 12px;
    background: #1a1a2e;
}

.financing-media figcaption {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    gap: 10px;
    margin-top: 10px;
    background: transparent;
}

.financing-media figcaption span {
    min-height: 52px;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(33, 38, 58, 0.05);
}

.financing-media figcaption span + span {
    border-left: 1px solid #e4e8f0;
}

.formation-facts {
    position: relative;
    z-index: 1;
    margin-top: -22px;
    background: transparent;
    border: 0;
}

.formation-facts-grid {
    overflow: hidden;
    border: 1px solid #e4e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(33, 38, 58, 0.08);
}

.formation-fact,
.formation-fact:first-child {
    border-color: #edf0f5;
}

.formation-fact {
    min-height: 112px;
    padding: 22px 20px;
}

.formation-section {
    padding-block: 72px;
}

.formation-section-gray {
    background: #f1f3f7;
}

.formation-section-pink {
    background: #fff3f9;
}

.formation-aside,
.formation-step,
.formation-option,
.finance-motion-card {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(33, 38, 58, 0.07);
}

.formation-aside {
    border-top-width: 4px;
}

.formation-step,
.formation-option {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.formation-step:hover,
.formation-option:hover {
    border-color: #f2a2c9;
    box-shadow: 0 16px 32px rgba(33, 38, 58, 0.1);
    transform: translateY(-3px);
}

.formation-step-number {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

.formation-faq details {
    border: 1px solid #f0d8e5;
    border-bottom: 0;
    background: #fff;
}

.formation-faq details:first-child {
    border-radius: 14px 14px 0 0;
}

.formation-faq details:last-child {
    border-bottom: 1px solid #f0d8e5;
    border-radius: 0 0 14px 14px;
}

.formation-faq summary {
    padding: 20px 22px;
}

.formation-faq p {
    padding-inline: 22px;
}

.formation-cta-band {
    background: #ec4899;
}

.formation-cta-band .formation-button {
    border-color: #fff;
}

.formation-finance-rail .formation-aside {
    position: static;
}

.finance-motion-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid #e7dce3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(47, 31, 42, 0.1);
}

.finance-motion-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 190px;
    overflow: hidden;
    background: #eef3fb;
    isolation: isolate;
}

.finance-motion-frame::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 56%;
    background: linear-gradient(180deg, transparent, rgba(24, 20, 28, 0.74));
    pointer-events: none;
}

.finance-motion-frame img,
.finance-motion-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.finance-motion-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    color: #a41552;
    font-size: 0.66rem;
    font-weight: 800;
    box-shadow: 0 7px 20px rgba(28, 22, 30, 0.1);
}

.finance-motion-path {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}

.finance-motion-path span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.finance-motion-path b {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ec4899;
    color: #fff;
    font-size: 0.58rem;
}

.finance-motion-path > i {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.54rem;
}

.finance-motion-card figcaption {
    padding: 17px 18px 18px;
}

.finance-motion-card figcaption strong,
.finance-motion-card figcaption span {
    display: block;
}

.finance-motion-card figcaption strong {
    margin-bottom: 3px;
    color: #17171a;
    font-size: 0.93rem;
}

.finance-motion-card figcaption span {
    color: #70727b;
    font-size: 0.76rem;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .financing-jump-nav {
        top: 72px;
    }

    #aides,
    #eligibilite,
    #etapes,
    #organismes,
    #faq {
        scroll-margin-top: 128px;
    }

    .formation-finance-rail {
        position: static;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
        align-items: start;
    }
}

@media (max-width: 720px) {
    .formation-nav-inner {
        min-height: 0;
    }

    .financing-jump-nav {
        top: 64px;
    }

    .financing-jump-nav-inner {
        width: min(100% - 28px, 1160px);
    }

    .financing-hero {
        padding-bottom: 32px;
    }

    .formation-finance-rail {
        grid-template-columns: 1fr;
    }

    .finance-motion-frame {
        min-height: 0;
    }
}

@media (max-width: 390px) {
    .finance-motion-path {
        gap: 5px;
        font-size: 0.59rem;
    }

    .finance-motion-path b {
        width: 19px;
        height: 19px;
    }
}
