/* Plugin "Liste des projets" (Templates/Project/List.html) : le plugin
   n'est pas enveloppé par lib.contentElement (pas de .frame/.container),
   d'où le wrapper .project-list-section/.container 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. */

.project-list-section {
    padding-block: 64px;
}

.project-list__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    padding: 0 60px;
}

.project-list__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.project-list__filter.is-active {
    border-color: #d9d9d9;
}

.project-list__sector-filter {
    position: relative;
}

.project-list__sector-filter select {
    appearance: none;
    padding: 12px 32px 12px 0;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #111111;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.project-list__sector-filter::after {
    content: '▾';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    pointer-events: none;
}

.project-list__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

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

.project-list__card.is-hidden {
    display: none;
}

.project-list__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-list__card-media {
    aspect-ratio: 4 / 3;
    margin-bottom: 16px;
    background-color: #e0e0e0;
    overflow: hidden;
}

.project-list__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-list__card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.project-list__card-title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.project-list__card-sector {
    flex-shrink: 0;
    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;
}

.project-list__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.project-list__pagination[hidden] {
    display: none;
}

.project-list__pagination-pages {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-list__pagination-page {
    min-width: 24px;
    font-size: 0.875rem;
    color: #6b6b6b;
}

.project-list__pagination-page.is-active {
    color: #111111;
    font-weight: 700;
}

.project-list__pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    color: #6b6b6b;
}

.project-list__pagination-arrow:hover:not(:disabled) {
    color: #111111;
}

.project-list__pagination-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-header__media img {
    width: 100%;
    height: auto;
    display: block;
}
