/*
 * PBA Financement Salariés Academy
 * CSS volontairement préfixé avec .pbasal pour éviter les conflits Elementor / thème.
 */
.pbasal {
    --pbasal-navy: #081b3d;
    --pbasal-blue: #163c73;
    --pbasal-gold: #d3b46d;
    --pbasal-gold-2: #f1cf7a;
    --pbasal-cyan: #7be8f3;
    --pbasal-ink: #0b1733;
    --pbasal-muted: #64708a;
    --pbasal-line: rgba(8, 27, 61, .12);
    --pbasal-soft: #f7f4ee;
    --pbasal-white: #fff;
    --pbasal-shadow: 0 28px 90px rgba(8, 27, 61, .13);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--pbasal-ink);
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 42%, #ffffff 100%);
    overflow: hidden;
}

.pbasal *, .pbasal *::before, .pbasal *::after { box-sizing: border-box; }
.pbasal a { color: inherit; text-decoration: none; }

.pbasal-wrap {
    width: min(1180px, calc(100% - 34px));
    margin-inline: auto;
}

/* HERO : image intégrée + voile premium lisible */
.pbasal-hero {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: stretch;
    isolation: isolate;
    background: #07162f;
}

.pbasal-hero__media {
    position: absolute;
    inset: 0;
    background-image: var(--pbasal-hero);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    animation: pbasalHeroZoom 12s ease-in-out infinite alternate;
    z-index: -3;
}

.pbasal-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8,27,61,.94) 0%, rgba(8,27,61,.83) 37%, rgba(8,27,61,.42) 70%, rgba(8,27,61,.2) 100%),
        linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.34));
    z-index: -2;
}

.pbasal-hero__glow {
    position: absolute;
    width: 560px;
    height: 560px;
    left: -180px;
    top: -180px;
    background: radial-gradient(circle, rgba(123,232,243,.24), rgba(123,232,243,0) 62%);
    z-index: -1;
    animation: pbasalFloat 7s ease-in-out infinite;
}

.pbasal-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, .74fr);
    gap: 46px;
    align-items: center;
    padding: 92px 0 70px;
}

.pbasal-eyebrow,
.pbasal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pbasal-gold-2);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.pbasal-eyebrow::before,
.pbasal-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
    border-radius: 20px;
}

.pbasal-hero h1 {
    margin: 22px 0 20px;
    max-width: 790px;
    font-family: Georgia, "Times New Roman", serif;
    color: #fff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: .94;
    letter-spacing: -.055em;
}

.pbasal-hero p {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.85);
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.75;
    font-weight: 520;
}

.pbasal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.pbasal-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 15px 22px;
    border-radius: 999px;
    font-weight: 900;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.pbasal-btn::after {
    content: "";
    position: absolute;
    inset: -20% auto -20% -65%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg);
    transition: left .65s ease;
}

.pbasal-btn:hover { transform: translateY(-3px); }
.pbasal-btn:hover::after { left: 125%; }

.pbasal-btn--primary {
    color: #07162f;
    background: linear-gradient(135deg, var(--pbasal-gold-2), var(--pbasal-gold));
    box-shadow: 0 18px 34px rgba(211,180,109,.32);
}

.pbasal-btn--ghost {
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}

.pbasal-hero__panel {
    display: grid;
    gap: 18px;
}

.pbasal-panel-card,
.pbasal-mini-grid > div {
    border: 1px solid rgba(255,255,255,.18);
    background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
    backdrop-filter: blur(16px);
    border-radius: 30px;
    color: #fff;
    box-shadow: 0 30px 70px rgba(0,0,0,.24);
}

.pbasal-panel-card { padding: 30px; }
.pbasal-panel-card span { color: var(--pbasal-gold-2); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.pbasal-panel-card strong { display: block; margin-top: 12px; font-size: 29px; line-height: 1.08; font-family: Georgia, "Times New Roman", serif; }
.pbasal-panel-card p { margin-top: 14px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.82); }

.pbasal-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}

.pbasal-mini-grid > div { padding: 18px; }
.pbasal-mini-grid strong { display: block; font-size: 20px; color: #fff; }
.pbasal-mini-grid span { display: block; margin-top: 5px; color: rgba(255,255,255,.72); font-size: 13px; }

.pbasal-nav {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: -30px auto 62px;
    padding: 12px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--pbasal-line);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-radius: 999px;
    box-shadow: var(--pbasal-shadow);
}

.pbasal-nav a {
    display: inline-flex;
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--pbasal-blue);
    font-weight: 850;
    transition: background .2s ease, color .2s ease;
}

.pbasal-nav a:hover { background: var(--pbasal-navy); color: #fff; }

.pbasal-section { padding: 42px 0 66px; }
.pbasal-section--soft {
    margin: 20px 0 60px;
    padding: 62px 42px;
    border-radius: 38px;
    background:
        radial-gradient(circle at 8% 0%, rgba(211,180,109,.18), transparent 34%),
        linear-gradient(180deg, #fffaf1, #ffffff);
    border: 1px solid rgba(211,180,109,.26);
}

.pbasal-head { max-width: 790px; margin-bottom: 34px; }
.pbasal-head h2,
.pbasal-docs h2,
.pbasal-cta h2 {
    margin: 12px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--pbasal-navy);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -.045em;
}
.pbasal-head p,
.pbasal-docs p,
.pbasal-cta p { color: var(--pbasal-muted); font-size: 17px; line-height: 1.7; margin: 0; }

.pbasal-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}

.pbasal-card {
    position: relative;
    min-height: 310px;
    padding: 26px;
    border: 1px solid var(--pbasal-line);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9)),
        radial-gradient(circle at 100% 0%, rgba(123,232,243,.18), transparent 35%);
    box-shadow: 0 18px 58px rgba(8,27,61,.08);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.pbasal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(211,180,109,.16), transparent 42%);
    opacity: 0;
    transition: opacity .28s ease;
}

.pbasal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 80px rgba(8,27,61,.14);
    border-color: rgba(211,180,109,.46);
}
.pbasal-card:hover::before { opacity: 1; }

.pbasal-card > * { position: relative; z-index: 1; }
.pbasal-card__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.pbasal-card__num {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: var(--pbasal-navy);
    background: linear-gradient(135deg, #fff6de, #ecd18a);
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(211,180,109,.25);
}
.pbasal-card__icon { font-size: 30px; }
.pbasal-card h3 { margin: 24px 0 12px; color: var(--pbasal-navy); font-size: 24px; line-height: 1.16; letter-spacing: -.025em; }
.pbasal-card p { margin: 0; color: var(--pbasal-muted); font-size: 15.5px; line-height: 1.72; }

.pbasal-more {
    position: absolute;
    left: 26px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 16px 12px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--pbasal-navy), var(--pbasal-blue));
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(8,27,61,.18);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pbasal-more:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(8,27,61,.24); }
.pbasal-more i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pbasal-gold); color: var(--pbasal-navy); font-style: normal; }

.pbasal-table {
    overflow: hidden;
    border: 1px solid var(--pbasal-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--pbasal-shadow);
}
.pbasal-table__row {
    display: grid;
    grid-template-columns: .8fr 1.4fr 1.2fr;
    gap: 18px;
    padding: 20px 24px;
    border-top: 1px solid var(--pbasal-line);
    color: var(--pbasal-muted);
    line-height: 1.55;
}
.pbasal-table__row:first-child { border-top: 0; }
.pbasal-table__head {
    background: var(--pbasal-navy);
    color: #fff;
    font-weight: 900;
}
.pbasal-table strong { color: var(--pbasal-navy); }
.pbasal-table__head strong { color: #fff; }

.pbasal-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
}
.pbasal-step {
    padding: 26px;
    border-radius: 28px;
    border: 1px solid var(--pbasal-line);
    background: #fff;
    box-shadow: 0 18px 50px rgba(8,27,61,.08);
}
.pbasal-step span { color: var(--pbasal-gold); font-weight: 950; font-size: 13px; letter-spacing: .13em; }
.pbasal-step h3 { margin: 16px 0 10px; color: var(--pbasal-navy); font-size: 22px; line-height: 1.15; }
.pbasal-step p { margin: 0; color: var(--pbasal-muted); line-height: 1.62; }

.pbasal-docs {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 34px;
    align-items: center;
    margin: 46px 0 58px;
    padding: 44px;
    border-radius: 36px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(123,232,243,.22), transparent 32%),
        linear-gradient(135deg, var(--pbasal-navy), #132c5c);
    box-shadow: 0 30px 80px rgba(8,27,61,.20);
}
.pbasal-docs h2, .pbasal-docs p { color: #fff; }
.pbasal-docs p { color: rgba(255,255,255,.78); }
.pbasal-docs ul { margin: 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.pbasal-docs li {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.9);
}
.pbasal-docs li::before { content: "✓"; margin-right: 10px; color: var(--pbasal-gold-2); font-weight: 900; }

.pbasal-faq { display: grid; gap: 12px; }
.pbasal-faq__item {
    border: 1px solid var(--pbasal-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 15px 44px rgba(8,27,61,.06);
    overflow: hidden;
}
.pbasal-faq__item summary {
    cursor: pointer;
    padding: 20px 24px;
    color: var(--pbasal-navy);
    font-weight: 900;
    list-style: none;
}
.pbasal-faq__item summary::-webkit-details-marker { display: none; }
.pbasal-faq__item summary::after { content: "+"; float: right; color: var(--pbasal-gold); font-size: 20px; }
.pbasal-faq__item[open] summary::after { content: "−"; }
.pbasal-faq__item p { margin: 0; padding: 0 24px 22px; color: var(--pbasal-muted); line-height: 1.7; }

.pbasal-cta {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    margin: 32px 0 88px;
    padding: 42px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7e3, #ffffff);
    border: 1px solid rgba(211,180,109,.32);
    box-shadow: var(--pbasal-shadow);
}
.pbasal-cta h2 { font-size: clamp(32px, 4vw, 52px); }

/* POPUP animée au clic sur Plus */
.pbasal-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.pbasal-modal.is-open { display: flex; }
.pbasal-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 23, .72);
    backdrop-filter: blur(9px);
    opacity: 0;
    animation: pbasalFade .22s ease forwards;
}
.pbasal-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(84vh, 760px);
    overflow: auto;
    padding: 38px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 100% 0%, rgba(211,180,109,.18), transparent 30%),
        #fff;
    box-shadow: 0 34px 100px rgba(0,0,0,.34);
    transform: translateY(22px) scale(.96);
    opacity: 0;
    animation: pbasalModalIn .28s cubic-bezier(.2,.9,.2,1) forwards;
}
.pbasal-modal__close {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--pbasal-navy);
    background: #f0ece5;
    font-size: 28px;
    line-height: 1;
}
.pbasal-modal__kicker {
    display: inline-flex;
    color: var(--pbasal-gold);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
}
.pbasal-modal h2 {
    margin: 12px 46px 20px 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--pbasal-navy);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -.04em;
}
.pbasal-modal__content p { color: var(--pbasal-muted); line-height: 1.75; font-size: 17px; }
.pbasal-modal__content ul { padding: 0; margin: 22px 0; list-style: none; display: grid; gap: 12px; }
.pbasal-modal__content li {
    padding: 15px 16px;
    border-radius: 18px;
    background: #f8f5ee;
    border: 1px solid rgba(211,180,109,.22);
    color: var(--pbasal-ink);
    line-height: 1.6;
}
.pbasal-modal__content li::before { content: "•"; color: var(--pbasal-gold); font-weight: 900; margin-right: 10px; }
.pbasal-modal__note {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    color: var(--pbasal-navy);
    background: linear-gradient(135deg, rgba(123,232,243,.18), rgba(211,180,109,.18));
    font-weight: 750;
    line-height: 1.65;
}

/* Apparition au scroll pilotée par JS */
.pbasal-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--pbasal-delay, 0ms);
}
.pbasal-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pbasalHeroZoom { from { transform: scale(1.02); } to { transform: scale(1.07); } }
@keyframes pbasalFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,25px); } }
@keyframes pbasalFade { to { opacity: 1; } }
@keyframes pbasalModalIn { to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 980px) {
    .pbasal-hero { min-height: auto; }
    .pbasal-hero__grid { grid-template-columns: 1fr; padding: 74px 0 64px; }
    .pbasal-hero__shade { background: linear-gradient(90deg, rgba(8,27,61,.94), rgba(8,27,61,.72)); }
    .pbasal-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pbasal-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pbasal-docs { grid-template-columns: 1fr; }
    .pbasal-table__row { grid-template-columns: 1fr; gap: 6px; }
    .pbasal-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .pbasal-wrap { width: min(100% - 22px, 1180px); }
    .pbasal-hero h1 { font-size: 42px; }
    .pbasal-hero__actions, .pbasal-nav { width: 100%; }
    .pbasal-btn, .pbasal-nav a { width: 100%; }
    .pbasal-mini-grid, .pbasal-card-grid, .pbasal-steps { grid-template-columns: 1fr; }
    .pbasal-section--soft, .pbasal-docs, .pbasal-cta { padding: 26px; border-radius: 28px; }
    .pbasal-card { min-height: 285px; }
    .pbasal-modal__dialog { padding: 28px 22px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    .pbasal *, .pbasal *::before, .pbasal *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .pbasal-reveal { opacity: 1; transform: none; }
}
