/* Plugin "Liste des actualités" (Templates/News/List.html) : le plugin
   n'est pas enveloppé par lib.contentElement (pas de .frame/.container),
   d'où le padding directement sur .news-list-view ci-dessous.
   Valeurs alignées sur les tokens de tc_theme (_variables.scss), dupliquées
   ici en CSS brut faute de build scss pour ce package (cf. tc_projects/tc_offers). */

.news-list__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 60px;
    margin-bottom: 32px;
}

.news-list__filter {
    padding: 12px 24px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #111111;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: border-color 0.2s ease;
}

.news-list__filter.is-active,
.news-list__filter:hover {
    border-color: #d9d9d9;
}

.news-list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 60px;
}

@media (min-width: 576px) {
    .news-list-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .news-list-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-list__item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-list__item-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    margin-bottom: 16px;
    background-color: #e0e0e0;
    overflow: hidden;
}

.news-list__item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list__item-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b6b6b;
    background-color: #f2f2f2;
    border-radius: 2px;
    white-space: nowrap;
}

.news-list__item-image-wrapper .news-list__item-category {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #111111;
    background-color: #ffffff;
}

.news-list__item-body .news-list__item-category {
    margin-bottom: 12px;
}

.news-list__item-date {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    color: #6b6b6b;
}

.news-list__item-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
}

.news-list__item-teaser {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #333333;
}

.news-list__item-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #ffffff;
    background-color: #111111;
    border-radius: 2px;
}

.no-news-found {
    padding: 48px 60px;
    text-align: center;
    color: #6b6b6b;
}

/* Pagination (Partials/List/Pagination.html) */
.f3-widget-paginator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 48px 60px 0;
    padding: 0;
    list-style: none;
}

.f3-widget-paginator li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    font-size: 0.875rem;
    color: #6b6b6b;
}

.f3-widget-paginator li a {
    color: inherit;
    text-decoration: none;
}

.f3-widget-paginator li a:hover {
    color: #111111;
}

.f3-widget-paginator li.current {
    color: #111111;
    font-weight: 700;
}

.f3-widget-paginator li.previous,
.f3-widget-paginator li.next {
    width: 32px;
    height: 32px;
}

.f3-widget-paginator li.previous a,
.f3-widget-paginator li.next a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Détail (Templates/News/Detail.html) */
.news-detail {
    display: block;
}

.news-detail__media {
    margin-bottom: 32px;
}

.news-detail__image {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail__content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-detail__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.news-detail__category {
    padding: 4px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b6b6b;
    background-color: #f2f2f2;
    border-radius: 2px;
}

.news-detail__date {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    color: #6b6b6b;
}

.news-detail__title {
    margin: 0 0 24px;
    font-size: 2rem;
    font-weight: 700;
}

.news-detail__teaser {
    margin: 0 0 24px;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.55;
}

.news-detail__body {
    font-size: 1rem;
    line-height: 1.55;
    color: #333333;
}

.news-detail__body p {
    margin: 0 0 16px;
}

.news-detail__content-elements {
    margin-top: 32px;
}

.news-detail__backlink {
    margin-top: 48px;
}

.news-detail__backlink-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
}

.news-detail__related-links {
    max-width: 760px;
    margin: 32px auto 0;
    padding: 0 24px;
}

.news-detail__related-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
