.home-category-sections {
    background: #f8fafc;
}

.home-category-section + .home-category-section {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.home-section-title {
    color: #0f172a;
    letter-spacing: -0.015em;
}

.home-section-description {
    max-width: 48rem;
}

/* Desktop : phrase d’accroche sur une seule ligne (le wrap reste en responsive) */
@media (min-width: 992px) {
    .hero-panel--home .hero-title {
        max-width: none;
        white-space: nowrap;
        text-wrap: nowrap;
    }
}

.home-category-ad-card,
.home-category-placeholder,
.home-job-card {
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-category-ad-card:hover,
.home-category-ad-card:focus-within,
.home-category-placeholder:hover,
.home-category-placeholder:focus-within,
.home-job-card:hover,
.home-job-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.11);
}

.home-category-ad-card__media {
    aspect-ratio: 16 / 10;
    min-height: 7rem;
}

.home-category-ad-card__image {
    display: block;
    height: 100%;
    object-fit: cover;
}

.home-category-ad-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.5em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.25;
}

.home-category-ad-card__meta {
    min-width: 0;
}

.home-category-placeholder {
    min-height: 11rem;
}

.home-category-placeholder__link {
    color: #334155;
}

.home-category-placeholder__link:hover,
.home-category-placeholder__link:focus-visible {
    color: var(--bs-primary, #0d6efd);
}

.home-category-placeholder__icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary, #0d6efd);
}

.home-category-placeholder__hint {
    color: #64748b;
}

.home-jobs-section {
    border-bottom: 0;
}

.home-job-card {
    min-height: 10.5rem;
}

.home-job-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.5em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.25;
}

.home-job-card__city {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-job-card__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.45;
}

.home-blog-section {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.home-blog-card .blog-card__image {
    height: clamp(8rem, 14vw, 10rem);
}

.home-blog-card .card-body {
    padding: 0.85rem 1rem !important;
}

.home-blog-card h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3;
}

.home-blog-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.45;
}

@media (max-width: 575.98px) {
    .home-section-description {
        line-height: 1.4;
    }

    .home-category-ad-card__media {
        min-height: 6.5rem;
    }

    .home-category-ad-card__title {
        font-size: 0.82rem;
    }

    .home-category-ad-card__meta {
        font-size: 0.72rem !important;
    }

    .home-category-placeholder {
        min-height: 9.5rem;
    }

    .home-category-placeholder__hint {
        font-size: 0.72rem;
    }

    .home-job-card {
        min-height: 9.5rem;
    }

    .home-blog-card .blog-card__image {
        height: 10rem;
    }

    .home-job-card__title {
        font-size: 0.85rem;
    }
}
