/**
 * Search CTA — banner injecté dans les résultats /annuaire/.
 * Vit dans le grid pro-cards (ann-grid) — doit s'aligner avec les cards.
 */

.apb-search-cta {
    --apb-cta-bg-start: #185FA5;
    --apb-cta-bg-end:   #0C447C;
    --apb-cta-text:     #FFFFFF;
    --apb-cta-btn-bg:   #F59E0B;
    --apb-cta-btn-color:#1A1204;

    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(135deg, var(--apb-cta-bg-start), var(--apb-cta-bg-end));
    color: var(--apb-cta-text);
    border-radius: 16px;
    padding: 22px 22px 24px;
    text-decoration: none;
    box-shadow: 0 8px 26px rgba(12, 68, 124, 0.18);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    min-height: 280px;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.apb-search-cta::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.apb-search-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(12, 68, 124, 0.28);
    color: var(--apb-cta-text);
}

.apb-search-cta__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    color: var(--apb-cta-btn-bg);
    flex-shrink: 0;
}

.apb-search-cta__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apb-search-cta__title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0;
    color: var(--apb-cta-text);
}

.apb-search-cta__subtitle {
    font-size: 13.5px;
    line-height: 1.45;
    margin: 0;
    opacity: 0.92;
    color: var(--apb-cta-text);
}

.apb-search-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--apb-cta-btn-bg);
    color: var(--apb-cta-btn-color);
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
    transition: transform 0.15s, box-shadow 0.15s;
}

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

/* List layout dell'annuaire (modalità lista) */
.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;
}

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