/* =========================================================
   JOBSTATION — LEADERBOARD PUBLICITAIRE
   Remplacement complet de assets/css/leaderboard.css
   ========================================================= */

.leaderboard {
    width: 100%;
    padding: 18px 0 28px;
    background: #ffffff;
}

.leaderboard .container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

.leaderboard-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 56px);
    min-height: 190px;
    padding: clamp(24px, 3.2vw, 42px);
    overflow: hidden;
    position: relative;
    isolation: isolate;
    border: 1px solid #e7ebf1;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 122, 0, 0.10), transparent 28%),
        linear-gradient(115deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 0 12px 30px rgba(18, 34, 58, 0.09);
}

.leaderboard-text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.leaderboard .sponsor {
    display: inline-flex;
    align-items: center;
    margin: 0 0 12px;
    color: #d96500;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.leaderboard h2 {
    max-width: 720px;
    margin: 0 0 10px;
    color: #14233b;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.leaderboard p {
    max-width: 620px;
    margin: 0 0 20px;
    color: #475569;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.leaderboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 19px;
    border: 1px solid #e87513;
    border-radius: 10px;
    background: #f07812;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 5px 12px rgba(224, 105, 9, 0.16);
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.leaderboard-btn:hover {
    background: #d96500;
    border-color: #d96500;
    box-shadow: 0 7px 16px rgba(224, 105, 9, 0.22);
    transform: translateY(-1px);
}

.leaderboard-btn:focus-visible {
    outline: 3px solid rgba(240, 120, 18, 0.35);
    outline-offset: 3px;
}

.leaderboard-brand {
    flex: 0 0 clamp(150px, 22%, 230px);
    width: clamp(150px, 22%, 230px);
    min-width: 0;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(18, 34, 58, 0.06);
}

.leaderboard-brand img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 190px;
    max-height: 112px;
    min-height: 80px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

/* Réduit les risques de débordement et préserve la lisibilité sur tablette. */
@media (max-width: 760px) {
    .leaderboard {
        padding: 14px 0 22px;
    }

    .leaderboard .container {
        width: min(100% - 28px, 620px);
    }

    .leaderboard-banner {
        align-items: flex-start;
        gap: 20px;
        min-height: 0;
        padding: 24px;
        border-radius: 18px;
    }

    .leaderboard-text {
        max-width: none;
    }

    .leaderboard h2 {
        font-size: clamp(24px, 5vw, 32px);
    }

    .leaderboard p {
        font-size: 14px;
    }

    .leaderboard-brand {
        flex-basis: 120px;
        width: 120px;
        min-height: 100px;
        padding: 10px;
    }

    .leaderboard-brand img {
        min-height: 70px;
        max-height: 90px;
    }
}

/* Sur mobile, la bannière devient une colonne lisible. */
@media (max-width: 520px) {
    .leaderboard-banner {
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }

    .leaderboard .sponsor {
        margin-bottom: 9px;
        font-size: 10px;
    }

    .leaderboard h2 {
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.18;
    }

    .leaderboard p {
        margin-bottom: 17px;
        line-height: 1.55;
    }

    .leaderboard-brand {
        align-self: stretch;
        width: 100%;
        min-height: 100px;
        flex-basis: auto;
    }

    .leaderboard-brand img {
        width: 100%;
        max-width: 210px;
        max-height: 90px;
        min-height: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leaderboard-btn {
        transition: none;
    }
}
