/* Salary SEO pages — aligned with Afluence's existing IDCC Blade design. */
html,
body {
    margin: 0;
    padding: 0;
}

.afsal-page {
    --afsal-navy: #0a1020;
    --afsal-navy-soft: #10182d;
    --afsal-blue: #2563eb;
    --afsal-sky: #38bdf8;
    --afsal-ink: #0b1220;
    --afsal-ink-soft: #5d6a85;
    --afsal-line: rgba(13, 18, 32, .1);
    --afsal-card: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--afsal-ink);
    background: #f5f7fb;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.afsal-page,
.afsal-page * {
    box-sizing: border-box;
}

.afsal-page a {
    text-decoration: none;
}

.afsal-page p {
    line-height: 1.8;
}

.afsal-page :focus-visible {
    outline: 3px solid var(--afsal-sky);
    outline-offset: 3px;
}

.afsal-page [id] {
    scroll-margin-top: 100px;
}

.afsal-page h1,
.afsal-page h2,
.afsal-page h3 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
}

.afsal-nav {
    position: relative;
    z-index: 10;
    min-height: 85px;
    padding: 17px clamp(20px, 5vw, 74px);
    background: #0a1020;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.afsal-brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: white;
}

.afsal-brand-mark {
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
}

.afsal-brand-mark img {
    max-width: 33px;
    max-height: 33px;
}

.afsal-brand strong {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.05em;
    display: block;
}

.afsal-brand small {
    font-size: 10px;
    font-weight: 600;
    display: block;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8fa4c6;
}

.afsal-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2.5vw, 34px);
}

.afsal-nav-links a {
    color: #bac6db;
    font-size: 13px;
    font-weight: 700;
}

.afsal-nav-links a:hover {
    color: white;
}

.afsal-nav-links .afsal-nav-button {
    border-radius: 999px;
    color: white;
    background: #2563eb;
    padding: 12px 20px;
}

.afsal-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 10% 10%, #182f66 0%, transparent 46%),
        radial-gradient(ellipse at 95% 85%, #123c67 0%, transparent 40%),
        linear-gradient(140deg, #0a1020, #10182d 78%);
    color: white;
}

.afsal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .055;
    background-image: linear-gradient(rgba(255, 255, 255, .4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .4) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.afsal-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
}

.afsal-orb-one {
    width: 370px;
    height: 370px;
    right: -95px;
    top: -200px;
    background: rgba(56, 189, 248, .12);
}

.afsal-orb-two {
    width: 280px;
    height: 280px;
    left: -100px;
    bottom: -170px;
    background: rgba(37, 99, 235, .13);
}

.afsal-hero-inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 58px;
}

.afsal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #8da3c8;
    font-size: 13px;
    margin-bottom: 42px;
}

.afsal-breadcrumb a {
    color: #9fb5d6;
}

.afsal-breadcrumb a:hover {
    color: white;
}

.afsal-breadcrumb span:last-child {
    color: white;
    font-weight: 700;
}

.afsal-pill {
    border: 1px solid rgba(96, 165, 250, .3);
    background: rgba(37, 99, 235, .12);
    color: #c8ddff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .025em;
}

.afsal-pill-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, .12);
}

.afsal-hero h1 {
    max-width: 1020px;
    font-size: clamp(37px, 5.4vw, 72px);
    line-height: 1.09;
    letter-spacing: -.052em;
    font-weight: 800;
    margin: 22px 0 24px;
    overflow-wrap: anywhere;
}

.afsal-hero-description {
    max-width: 830px;
    color: #bac7de;
    font-size: clamp(16px, 1.8vw, 18px);
}

.afsal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin: 31px 0 43px;
}

.afsal-button {
    min-height: 49px;
    padding: 14px 24px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.afsal-button:hover {
    transform: translateY(-2px);
}

.afsal-button-primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 15px 34px rgba(37, 99, 235, .2);
}

.afsal-button-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.afsal-button-outline {
    color: #e1ebfb;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .04);
}

.afsal-button-outline:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.afsal-stats {
    display: grid;
    max-width: 860px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 26px;
}

.afsal-stats>div {
    border-right: 1px solid rgba(255, 255, 255, .11);
    padding: 5px 23px 5px 0;
    margin-right: 23px;
}

.afsal-stats>div:last-child {
    border: 0;
}

.afsal-stats strong {
    display: block;
    font-size: 31px;
    letter-spacing: -.045em;
    font-weight: 800;
}

.afsal-stats span {
    display: block;
    color: #91a4c1;
    font-size: 12px;
    margin-top: 4px;
}

.afsal-main-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 90px;
}

.afsal-introduction {
    max-width: 940px;
    padding: 88px 0 55px;
}

.afsal-eyebrow {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.afsal-introduction h2,
.afsal-content-section h2,
.afsal-bottom-cta h2 {
    font-size: clamp(28px, 3vw, 41px);
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -.045em;
    margin: 0 0 24px;
    overflow-wrap: anywhere;
}

.afsal-introduction h2 em,
.afsal-bottom-cta h2 em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    letter-spacing: -.02em;
}

.afsal-introduction p,
.afsal-content-section>p {
    font-size: 16px;
    color: #586782;
    margin: 0 0 17px;
}

.afsal-check-date {
    color: #607595;
    border-left: 3px solid #60a5fa;
    padding: 12px 18px;
    margin-top: 28px;
    background: #eaf1ff;
    border-radius: 0 9px 9px 0;
    font-size: 13px;
}

.afsal-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 278px;
    gap: 40px;
    align-items: start;
}

.afsal-section-anchor {
    height: 1px;
}

.afsal-content-main {
    min-width: 0;
}

.afsal-content-section {
    background: white;
    padding: clamp(25px, 3.2vw, 38px);
    border: 1px solid rgba(13, 18, 32, .07);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(18, 38, 70, .035);
    margin-bottom: 26px;
}

.afsal-content-section h2 {
    font-size: clamp(24px, 2.4vw, 31px);
    margin-bottom: 20px;
}

.afsal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 23px;
}

.afsal-tag {
    display: inline-block;
    background: #eef4ff;
    color: #31568d;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.afsal-table-card {
    margin: 28px 0 12px;
    border-radius: 14px;
    border: 1px solid #dce4f0;
    overflow: hidden;
    background: #fff;
}

.afsal-table-heading {
    padding: 18px 19px;
    background: #f2f6fc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.afsal-table-heading h3 {
    font-size: 17px;
    letter-spacing: -.02em;
    margin: 0;
}

.afsal-table-heading span {
    background: #e3efff;
    color: #2860ae;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.afsal-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.afsal-table-scroll table {
    width: 100%;
    border-collapse: collapse;
    min-width: 570px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* Tableaux salariaux comportant de nombreuses colonnes */
.afsal-table-scroll table.afsal-table-wide {
    min-width: 950px;
}

/* Éviter de couper les montants et coefficients */
.afsal-table-scroll table.afsal-table-wide tbody td:not(:last-child) {
    white-space: nowrap;
}

.afsal-table-scroll caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.afsal-table-scroll thead {
    background: #162944;
    color: #fff;
}

.afsal-table-scroll thead th {
    font-weight: 700;
    text-align: left;
    padding: 14px 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.afsal-table-scroll tbody th,
.afsal-table-scroll tbody td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #e9edf5;
    vertical-align: top;
}

.afsal-table-scroll tbody th {
    font-weight: 700;
    color: #26364e;
}

.afsal-table-scroll tbody tr:nth-child(even) {
    background: #f8faff;
}

.afsal-table-scroll tbody tr:hover {
    background: #eef4ff;
}

.afsal-table-note {
    color: #6e7890;
    font-size: 12px;
    padding: 11px 17px 14px;
    margin: 0;
    line-height: 1.6;
}

.afsal-parameters {
    background: #edf5ff;
    border: 1px solid #d6e5ff;
    padding: 23px;
    border-radius: 13px;
    margin: 25px 0;
}

.afsal-parameters h3 {
    font-size: 18px;
    margin: 0 0 15px;
}

.afsal-parameters dl {
    margin: 0;
}

.afsal-parameters dl>div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid #d9e6f8;
    gap: 18px;
    padding: 12px 0;
}

.afsal-parameters dt {
    color: #344862;
    line-height: 1.5;
}

.afsal-parameters dd {
    margin: 0;
    color: #1255a4;
    font-weight: 800;
    white-space: normal;
    text-align: right;
}

.afsal-parameters>p {
    color: #687e9a;
    font-size: 12px;
    margin: 16px 0 0;
}

.afsal-sources {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.afsal-sources li {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid #e7ebf2;
}

.afsal-sources strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.afsal-sources small {
    display: block;
    color: #7d8a9d;
    margin-top: 7px;
    line-height: 1.5;
    font-size: 12px;
}

.afsal-sources a {
    color: #205bd3;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    margin-top: 3px;
}

.afsal-sources a:hover {
    text-decoration: underline;
}

.afsal-faq details {
    padding: 18px 0;
    border-bottom: 1px solid #e7ebf2;
}

.afsal-faq summary {
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    padding-right: 26px;
    position: relative;
}

.afsal-faq summary::-webkit-details-marker {
    display: none;
}

.afsal-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: #2563eb;
    font-size: 22px;
    line-height: 1;
}

.afsal-faq details[open] summary::after {
    content: '−';
}

.afsal-faq details p {
    color: #60708b;
    font-size: 14px;
    margin: 14px 0 0;
}

.afsal-sidebar {
    position: sticky;
    top: 24px;
}

.afsal-side-card {
    border: 1px solid rgba(13, 18, 32, .09);
    border-radius: 15px;
    padding: 25px 21px;
    background: white;
    margin-bottom: 18px;
}

.afsal-side-kicker {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    color: #5384ce;
    text-transform: uppercase;
}

.afsal-side-card h2 {
    font-size: 21px;
    letter-spacing: -.04em;
    margin: 9px 0 16px;
}

.afsal-side-card>a:not(.afsal-side-cta) {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #45607f;
    padding: 9px 0;
    border-bottom: 1px solid #eef1f6;
    overflow-wrap: anywhere;
}

.afsal-side-card>a:not(.afsal-side-cta):hover {
    color: #2563eb;
}

.afsal-side-card .afsal-sidebar-grid {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding-left: 11px !important;
}

.afsal-side-highlight {
    background: #0d1930;
    color: white;
}

.afsal-side-highlight h2 {
    color: white;
}

.afsal-side-highlight p {
    font-size: 13px;
    color: #a7b7d0;
    margin-bottom: 20px;
    line-height: 1.7;
}

.afsal-side-cta {
    display: block;
    background: #2563eb;
    color: white;
    border-radius: 9px;
    padding: 12px;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
}

.afsal-side-cta:hover {
    color: white;
    background: #1d4ed8;
}

.afsal-bottom-cta {
    margin-top: 70px;
    padding: clamp(28px, 4vw, 55px);
    background: linear-gradient(130deg, #0c1932, #172d53);
    border-radius: 20px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.afsal-bottom-cta>div {
    max-width: 720px;
}

.afsal-bottom-cta h2 {
    font-size: clamp(27px, 3vw, 36px);
    margin: 12px 0;
}

.afsal-bottom-cta p {
    color: #b5c4da;
    margin: 0;
    font-size: 14px;
}

.afsal-bottom-cta .afsal-eyebrow {
    color: #7dbbff;
}

.afsal-bottom-cta .afsal-button {
    white-space: nowrap;
}

.afsal-footer {
    background: #0a1020;
    color: #8191ae;
    padding: 33px clamp(20px, 5vw, 74px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 12px;
}

.afsal-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.afsal-footer a {
    color: #a5b3ca;
}

.afsal-footer a:hover {
    color: white;
}

@media (max-width: 1050px) {
    .afsal-content-grid {
        grid-template-columns: 1fr;
    }

    .afsal-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .afsal-side-card {
        margin: 0;
    }

    .afsal-nav-links a:nth-child(2),
    .afsal-nav-links a:nth-child(3) {
        display: none;
    }
}

@media (max-width: 690px) {
    .afsal-nav {
        padding: 14px 18px;
    }

    .afsal-nav-links a:not(.afsal-nav-button) {
        display: none;
    }

    .afsal-nav-button {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }

    .afsal-hero-inner {
        padding: 31px 20px 43px;
    }

    .afsal-breadcrumb {
        margin-bottom: 30px;
    }

    .afsal-hero h1 {
        font-size: clamp(33px, 9vw, 48px);
    }

    .afsal-stats {
        grid-template-columns: 1fr;
    }

    .afsal-stats>div {
        padding: 10px 0;
        margin: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .11);
    }

    .afsal-stats>div:last-child {
        border: 0;
    }

    .afsal-main-wrap {
        padding: 0 16px 52px;
    }

    .afsal-introduction {
        padding: 55px 0 30px;
    }

    .afsal-content-section {
        border-radius: 13px;
        padding: 22px 19px;
    }

    .afsal-parameters dl>div {
        display: block;
    }

    .afsal-parameters dd {
        text-align: left;
        margin-top: 8px;
    }

    .afsal-sources li {
        display: block;
    }

    .afsal-sources a {
        display: inline-block;
        margin-top: 12px;
    }

    .afsal-sidebar {
        grid-template-columns: 1fr;
    }

    .afsal-bottom-cta {
        display: block;
    }

    .afsal-bottom-cta .afsal-button {
        margin-top: 25px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afsal-button {
        transition: none;
    }
}