/**
 * apb-search-cta.css — Banner CTA injecté dans les résultats /annuaire/.
 *
 * v2.29.0 — Migré sur les design tokens (apb-tokens.css).
 * Avant : gradient #185FA5→#0C447C (legacy cool blue).
 * Après : gradient var(--apb-brand)→var(--apb-brand-2) (navy chaud cohérent).
 *
 * Vit dans le grid pro-cards (.fxs-annuaire .ann-grid) → doit s'aligner
 * visuellement avec les cards pro autour.
 */

.apb-search-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 70%),
        linear-gradient(135deg, var(--apb-brand, #0B2A4A), var(--apb-brand-2, #143D69));
    color: var(--apb-ink-on-brand, #FFFFFF);
    border-radius: var(--apb-radius-md, 16px);
    padding: 22px 22px 24px;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(11, 42, 74, 0.20);
    position: relative;
    overflow: hidden;
    transition: transform var(--apb-dur, 220ms) var(--apb-ease-out, ease),
                box-shadow var(--apb-dur, 220ms) var(--apb-ease-out, ease);
    min-height: 280px;
    box-sizing: border-box;
    font-family: var(--apb-sans, 'Inter', system-ui, -apple-system, sans-serif);
}

/* Halo décoratif top-right (lumière diffuse) */
.apb-search-cta::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* Tape "drapeau belge" sur l'edge top (signature brand) */
.apb-search-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--apb-tape, linear-gradient(to right, #0B2A4A 0%, #0B2A4A 33%, #F59E0B 33%, #F59E0B 66%, #EF3340 66%));
    opacity: 0.85;
    pointer-events: none;
}

.apb-search-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(11, 42, 74, 0.28);
    color: var(--apb-ink-on-brand, #FFFFFF);
}

/* ════════════════════════════════════════════════════════════
   ICON (top-left)
   ════════════════════════════════════════════════════════════ */
.apb-search-cta__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--apb-radius-md, 14px);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    color: var(--apb-accent, #F59E0B);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   BODY (title + subtitle)
   ════════════════════════════════════════════════════════════ */
.apb-search-cta__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apb-search-cta__title {
    font-family: var(--apb-display, var(--apb-sans));
    font-size: 19px;
    font-weight: 800;
    letter-spacing: var(--apb-tracking-tight, -0.025em);
    line-height: 1.25;
    margin: 0;
    color: var(--apb-ink-on-brand, #FFFFFF);
}

.apb-search-cta__subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.88;
    color: var(--apb-ink-on-brand, #FFFFFF);
}

/* ════════════════════════════════════════════════════════════
   BUTTON (amber CTA)
   ════════════════════════════════════════════════════════════ */
.apb-search-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 11px 20px;
    border-radius: var(--apb-radius-sm, 10px);
    background: var(--apb-accent, #F59E0B);
    color: var(--apb-accent-ink, #1A1204);
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
    transition: transform var(--apb-dur-fast, 150ms),
                box-shadow var(--apb-dur, 220ms),
                background var(--apb-dur-fast, 150ms);
    text-decoration: none;
}

.apb-search-cta:hover .apb-search-cta__btn {
    transform: translateX(2px);
    background: var(--apb-accent-2, #E88B05);
    box-shadow: var(--apb-shadow-amber, 0 4px 14px rgba(245, 158, 11, 0.45));
}

/* ════════════════════════════════════════════════════════════
   List layout (ann-grid-list)
   ════════════════════════════════════════════════════════════ */
.ann-grid-list .apb-search-cta {
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding: 18px 22px;
}

.ann-grid-list .apb-search-cta__btn {
    margin-top: 0;
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   Mobile
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .apb-search-cta {
        min-height: 0;
        padding: 18px;
    }
    .apb-search-cta__title {
        font-size: 17px;
    }
    .apb-search-cta__subtitle {
        font-size: 13px;
    }
}
