/* ============================================================
   BLOC PROJETS — shokola_projets
   Grille de réalisations (CPT) + filtres. CSS scoppé (.shk-works*).
   Réutilise .shk-section, .shk-wrap, .shk-section-head/-num/-title.
   ============================================================ */
.shk-works-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* --- Filtres --- */
.shk-works-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shk-works-filter {
    font-family: var(--font-2);
    font-size: .76rem;
    font-weight: 500;
    padding: 9px 15px;
    border: 1px solid var(--shk-line);
    border-radius: 30px;
    transition: .3s;
    color: var(--color-ink-2);
    background: transparent;
    cursor: pointer;
}

.shk-works-filter:hover {
    border-color: var(--color-dark);
}

.shk-works-filter.active {
    background: var(--color-dark);
    color: var(--color-paper);
    border-color: var(--color-dark);
}

.shk-works-filter:focus-visible {
    outline: 2px solid var(--color-primaire);
    outline-offset: 2px;
}

/* --- Grille --- */
.shk-works-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.shk-work {
    grid-column: span 6;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    display: block;
    transition: opacity .5s, transform .5s, filter .5s;
}

.shk-work.span4 { grid-column: span 4; aspect-ratio: 4 / 5; }
.shk-work.span8 { grid-column: span 8; aspect-ratio: 16 / 9; }

.shk-work-cover {
    position: absolute;
    inset: 0;
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.shk-work:hover .shk-work-cover {
    transform: scale(1.05);
}

.shk-work-cover .field,
.shk-work-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shk-work-reg {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: .7;
    z-index: 2;
}

.shk-work-reg::before,
.shk-work-reg::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .8);
}

.shk-work-reg::before { left: 50%; top: 0; width: 1px; height: 100%; }
.shk-work-reg::after { top: 50%; left: 0; height: 1px; width: 100%; }
.shk-work-reg.a { top: 16px; left: 16px; }
.shk-work-reg.b { bottom: 16px; right: 16px; }

.shk-work-num {
    position: absolute;
    top: 18px;
    right: 20px;
    font-family: var(--font-2);
    font-size: .78rem;
    color: rgba(255, 255, 255, .85);
    z-index: 2;
}

.shk-work-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 22px;
    z-index: 2;
    background: linear-gradient(to top, rgba(20, 21, 26, .85), transparent);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
}

.shk-work-info .t { color: #fff; }

.shk-work-nm {
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.05;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.shk-work-cat {
    font-family: var(--font-2);
    font-size: .72rem;
    color: rgba(255, 255, 255, .78);
    margin-top: 6px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.shk-work-tag {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: .66rem;
    color: #14151A;
    font-weight: 600;
    background: var(--color-accent);
}

.shk-work-go {
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-2);
    transform: translateY(8px);
    opacity: 0;
    transition: .4s;
}

.shk-work:hover .shk-work-go {
    transform: translateY(0);
    opacity: 1;
    background: #fff;
    color: #14151A;
}

.shk-work.hidden { display: none; }

.shk-works-empty {
    font-family: var(--font-2);
    font-size: .85rem;
    color: var(--color-ink-soft);
    padding: 32px 0;
}

@media (max-width: 820px) {
    .shk-work,
    .shk-work.span4,
    .shk-work.span8 {
        grid-column: span 12;
        aspect-ratio: 16 / 10;
    }
}
