/* =====================================================
   JOBSTATION — SIDEBAR PUBLICITAIRE & NEWSLETTER
   RESPONSIVE DESKTOP / TABLETTE / MOBILE
===================================================== */

.sidebar,
.feed-sidebar {
    min-width: 0;
    align-self: start;
}

.sidebar-widget,
.sidebar-widget * {
    box-sizing: border-box;
}

.sidebar-widget {
    width: 100%;
    min-width: 0;
    margin: 0 0 20px;
    padding: 22px;
    overflow: hidden;

    background: #FFFFFF;
    border: 1px solid #E5EAF1;
    border-radius: 18px;

    box-shadow: 0 8px 24px rgba(11, 25, 48, 0.055);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* ---------- TITRES ET TEXTES ---------- */

.sidebar-widget h3 {
    margin: 0 0 12px;
    color: #0B1930;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.sidebar-widget p {
    max-width: 100%;
    margin: 0 0 16px;
    color: #526176;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ---------- SPONSOR ---------- */

.sidebar-widget.sponsor {
    border-top: 3px solid #FF7A00;
}

.sidebar-widget .widget-tag {
    display: inline-block;
    margin: 0 0 12px;
    color: #D96500;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.sidebar-widget .ad-placeholder {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 10px;
    width: 100%;
    min-width: 0;
}

.sidebar-widget .ad-placeholder strong {
    max-width: 100%;
    color: #0B1930;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sidebar-widget .ad-placeholder span {
    min-width: 0;
    color: #526176;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* ---------- NEWSLETTER ---------- */

.sidebar-widget.newsletter h3 {
    margin-bottom: 12px;
}

.sidebar-widget.newsletter p {
    margin-bottom: 18px;
}

.sidebar-widget.newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 12px 20px;

    border: 1px solid #FF7A00;
    border-radius: 10px;

    background: #FF7A00;
    color: #FFFFFF;

    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;

    cursor: pointer;
    transition: background-color .2s ease;
}

.sidebar-widget.newsletter button:hover {
    background: #E96800;
    border-color: #E96800;
}

.sidebar-widget button:focus-visible,
.sidebar-widget a:focus-visible {
    outline: 3px solid rgba(255, 122, 0, .3);
    outline-offset: 3px;
}

/* ---------- IMAGES ---------- */

.sidebar-widget img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* ---------- TABLETTE ---------- */

@media (max-width: 900px) {
    .sidebar-widget {
        padding: 20px;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 600px) {
    .sidebar-widget {
        width: 100%;
        min-width: 0;
        margin-bottom: 16px;
        padding: 18px;
        border-radius: 16px;
    }

    .sidebar-widget h3 {
        font-size: 18px;
    }

    .sidebar-widget .ad-placeholder {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .sidebar-widget .ad-placeholder strong {
        font-size: 19px;
    }

    .sidebar-widget .ad-placeholder span {
        font-size: 14px;
    }

    .sidebar-widget.newsletter p {
        max-width: 100%;
        font-size: 14px;
    }

    .sidebar-widget.newsletter button {
        width: 100%;
        max-width: 100%;
    }
}

/* ---------- ACCESSIBILITÉ ---------- */

@media (prefers-reduced-motion: reduce) {
    .sidebar-widget button {
        transition: none;
    }
}