/* =========================================================
   PAGE LA BST
   Fond illustré, cartes éditoriales et responsive
   ========================================================= */

:root {
    --bst-blue: #173247;
    --bst-blue-dark: #0b2435;
    --bst-blue-soft: #eaf1f4;
    --bst-gold: #f3cf67;
    --bst-green: #31533f;
    --bst-cream: #fffaf0;
    --bst-coral: #d9836f;
    --bst-text: #173042;
    --bst-muted: #60717c;
    --bst-line: #dce4e8;
    --bst-white: #ffffff;
    --bst-shadow: 0 18px 45px rgba(17, 44, 62, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    color: var(--bst-text);

    background:
        linear-gradient(
            135deg,
            rgba(238, 228, 210, 0.82),
            rgba(237, 243, 223, 0.72)
        ),
        url("/img/BackgroungBSTamaquiz.png")
        center / cover
        fixed
        no-repeat;

    font-family: Arial, sans-serif;
}

.bst-page {
    position: relative;

    width: min(calc(100% - 32px), 1180px);
    margin: 34px auto 56px;
}

.bst-hero,
.bst-section,
.bst-cta {
    margin-bottom: 28px;

    border: 1px solid rgba(23, 50, 71, 0.11);
    border-radius: 22px;

    background: rgba(255, 252, 245, 0.95);

    box-shadow: var(--bst-shadow);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bst-hero {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(300px, 0.75fr);
    gap: 34px;

    min-height: 590px;
    padding: clamp(36px, 6vw, 74px);
    overflow: hidden;

    color: #ffffff;

    background-image:
        linear-gradient(
            90deg,
            rgba(6, 29, 47, 0.97) 0%,
            rgba(6, 29, 47, 0.90) 38%,
            rgba(6, 29, 47, 0.62) 68%,
            rgba(6, 29, 47, 0.38) 100%
        ),
        url("/img/BackgroungBSTamaquiz.png");

    background-position: center;
    background-size: cover;

    box-shadow:
        0 24px 60px
        rgba(6, 29, 47, 0.26);
}

.bst-hero::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(243, 207, 103, 0.18),
            transparent 32%
        );

    pointer-events: none;
}

.bst-hero__content {
    position: relative;
    z-index: 2;

    align-self: center;
    max-width: 720px;
}

.bst-kicker {
    margin: 0 0 12px;

    color: #9b4438;

    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bst-hero .bst-kicker {
    color: var(--bst-gold);
}

.bst-hero h1,
.bst-section h2,
.bst-cta h2 {
    margin: 0;

    color: var(--bst-blue-dark);

    font-family: Georgia, serif;
    line-height: 1.12;
}

.bst-hero h1 {
    max-width: 15ch;

    color: #ffffff;

    font-size: clamp(2.4rem, 6vw, 4.8rem);

    text-shadow:
        0 3px 18px
        rgba(0, 0, 0, 0.45);
}

.bst-hero__lead,
.bst-section__lead {
    color: var(--bst-blue);

    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.7;
}

.bst-hero__lead {
    color: rgba(255, 255, 255, 0.97);
    font-weight: 650;

    text-shadow:
        0 2px 10px
        rgba(0, 0, 0, 0.28);
}

.bst-hero__content > p:not(.bst-kicker, .bst-hero__lead) {
    color: rgba(255, 255, 255, 0.86);
}

.bst-hero p,
.bst-section p,
.bst-cta p,
.bst-section li {
    line-height: 1.72;
}

.bst-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 26px;
}

.bst-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 19px;

    border: 2px solid var(--bst-blue);
    border-radius: 999px;

    font-weight: 800;
    text-decoration: none;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease;
}

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

.bst-button:focus-visible {
    outline: 3px solid var(--bst-gold);
    outline-offset: 4px;
}

.bst-button--primary {
    color: #ffffff;
    background: var(--bst-blue);
}

.bst-button--secondary {
    color: var(--bst-blue);
    background: transparent;
}

.bst-hero .bst-button--primary {
    color: var(--bst-blue-dark);
    border-color: var(--bst-gold);
    background: var(--bst-gold);

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, 0.20);
}

.bst-hero .bst-button--primary:hover {
    background: #ffe18a;
}

.bst-hero .bst-button--secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(6, 29, 47, 0.34);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bst-hero .bst-button--secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.bst-hero__panel {
    position: relative;
    z-index: 2;

    align-self: center;
    padding: 26px;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;

    color: #ffffff;
    background: rgba(6, 29, 47, 0.74);

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.28);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bst-hero__panel-title {
    margin: 0 0 18px;

    color: var(--bst-gold);

    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bst-steps {
    display: grid;
    gap: 14px;

    margin: 0;
    padding: 0;

    list-style: none;
    counter-reset: steps;
}

.bst-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 4px 12px;

    counter-increment: steps;
}

.bst-steps li::before {
    content: counter(steps);

    grid-row: 1 / 3;

    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    color: var(--bst-blue-dark);
    background: var(--bst-gold);

    font-weight: 900;
}

.bst-steps strong {
    font-size: 1.04rem;
}

.bst-steps span {
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.92rem;
}

.bst-section,
.bst-cta {
    padding: clamp(26px, 5vw, 54px);
}

.bst-section h2,
.bst-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.bst-section--intro {
    display: grid;
    grid-template-columns:
        minmax(260px, 0.75fr)
        minmax(0, 1.25fr);
    gap: 40px;
}

.bst-prose p:first-child {
    margin-top: 0;
}

.bst-card-grid {
    display: grid;
    gap: 18px;

    margin-top: 30px;
}

.bst-card-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bst-feature-card {
    position: relative;

    min-height: 240px;
    padding: 24px;

    border: 1px solid var(--bst-line);
    border-radius: 16px;

    background:
        linear-gradient(
            160deg,
            #ffffff,
            #f7fafb
        );
}

.bst-feature-card__number {
    display: block;
    margin-bottom: 28px;

    color: var(--bst-coral);

    font-size: 0.85rem;
    font-weight: 900;
}

.bst-feature-card h3,
.bst-tools h3,
.bst-principles h3,
.bst-comparison h3 {
    margin: 0 0 12px;

    color: var(--bst-blue);

    font-family: Georgia, serif;
    font-size: 1.35rem;
}

.bst-feature-card p {
    margin-bottom: 0;
    color: var(--bst-muted);
}

.bst-section--tinted {
    color: #ffffff;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(243, 207, 103, 0.14),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--bst-blue),
            var(--bst-blue-dark)
        );
}

.bst-section--tinted h2,
.bst-section--tinted .bst-section__lead {
    color: #ffffff;
}

.bst-section--tinted .bst-kicker {
    color: var(--bst-gold);
}

.bst-levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin-top: 28px;
}

.bst-levels article {
    display: grid;
    gap: 6px;

    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.06);
}

.bst-levels strong {
    color: var(--bst-gold);
    font-size: 1.1rem;
}

.bst-levels span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.bst-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    margin-top: 30px;
}

.bst-tools article {
    padding: 26px;

    border-top: 4px solid var(--bst-coral);
    border-radius: 0 0 16px 16px;

    background: var(--bst-blue-soft);
}

.bst-tools ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.bst-tools li + li {
    margin-top: 6px;
}

.bst-section--principles {
    display: grid;
    grid-template-columns:
        minmax(250px, 0.7fr)
        minmax(0, 1.3fr);
    gap: 42px;
}

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

.bst-principles article {
    padding: 20px;

    border: 1px solid var(--bst-line);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.58);
}

.bst-principles p {
    margin-bottom: 0;
    color: var(--bst-muted);
}

.bst-section--clarification {
    text-align: center;
}

.bst-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    margin-top: 28px;

    text-align: left;
}

.bst-comparison > div {
    padding: 25px;

    border: 1px solid rgba(49, 83, 63, 0.12);
    border-radius: 16px;

    background: var(--bst-cream);
}

.bst-quote {
    max-width: 42ch;
    margin: 30px auto 0;

    color: var(--bst-blue);

    font-family: Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 700;
}

.bst-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #31533f,
            #173f31
        );
}

.bst-cta h2,
.bst-cta .bst-kicker {
    color: #ffffff;
}

.bst-cta .bst-kicker {
    opacity: 0.78;
}

.bst-cta p {
    max-width: 64ch;
}

.bst-cta .bst-button--primary {
    color: var(--bst-blue-dark);
    border-color: var(--bst-gold);
    background: var(--bst-gold);
}

.bst-cta .bst-button--secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 980px) {
    .bst-hero,
    .bst-section--intro,
    .bst-section--principles {
        grid-template-columns: 1fr;
    }

    .bst-card-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bst-levels,
    .bst-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bst-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 850px) {
    body {
        background-attachment: scroll;
    }

    .bst-hero {
        grid-template-columns: 1fr;

        min-height: auto;
        padding: 42px 24px;

        background-image:
            linear-gradient(
                180deg,
                rgba(6, 29, 47, 0.96) 0%,
                rgba(6, 29, 47, 0.86) 60%,
                rgba(6, 29, 47, 0.74) 100%
            ),
            url("/img/BackgroungBSTamaquiz.png");

        background-position: 58% center;
    }

    .bst-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.5rem);
    }

    .bst-hero__panel {
        margin-top: 10px;
    }
}

@media (max-width: 640px) {
    .bst-page {
        width: min(calc(100% - 20px), 1180px);
        margin-top: 18px;
    }

    .bst-hero,
    .bst-section,
    .bst-cta {
        border-radius: 16px;
    }

    .bst-card-grid--four,
    .bst-levels,
    .bst-tools,
    .bst-principles,
    .bst-comparison {
        grid-template-columns: 1fr;
    }

    .bst-feature-card {
        min-height: 0;
    }

    .bst-actions {
        flex-direction: column;
    }

    .bst-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .bst-button {
        transition: none;
    }
}
