/* Salon de coiffure che'Z'elle — Galerie Avant/Après */
.cz-portfolio-wrap {
    width: 100%;
}

.cz-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.cz-filter-btn {
    background: #FFFFFF;
    color: #2B2B2B;
    border: 1px solid #EAE2D6;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cz-filter-btn:hover {
    border-color: #D4949E;
    color: #D4949E;
}

.cz-filter-btn.is-active {
    background: #2B2B2B;
    color: #FFFFFF;
    border-color: #2B2B2B;
}

.cz-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 28px;
}

.cz-card {
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #EAE2D6;
    box-shadow: 0 10px 28px rgba(43, 43, 43, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cz-card.is-hidden {
    display: none;
}

.cz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(43, 43, 43, 0.09);
}

.cz-single-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #F7F4F0;
}

.cz-single-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cz-card:hover .cz-single-media img {
    transform: scale(1.04);
}

.cz-ba-container {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    user-select: none;
    background: #F7F4F0;
    --pos: 50%;
}

.cz-ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cz-ba-before-wrap {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.cz-ba-tag {
    position: absolute;
    top: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(43, 43, 43, 0.72);
    color: #FFFFFF;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 2;
}

.cz-ba-tag--before { left: 14px; }
.cz-ba-tag--after { right: 14px; background: rgba(212, 148, 158, 0.9); }

.cz-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 3;
    transform: translateX(-50%);
}

.cz-ba-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #2B2B2B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 2px solid #E8B4BC;
}

.cz-ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
    margin: 0;
}

.cz-card-body {
    padding: 20px 22px 24px;
}

.cz-card-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #7C927E;
    margin-bottom: 6px;
}

.cz-card-title {
    font-size: 1.25rem;
    color: #2B2B2B;
    margin: 0 0 6px;
}

.cz-card-desc {
    font-size: 0.88rem;
    color: #66615E;
    margin: 0;
    line-height: 1.5;
}
