/* GRID */
.chafik-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* TABLET */
@media (max-width: 1024px) {
    .chafik-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .chafik-grid {
        grid-template-columns: 1fr;
    }
}

/* ITEM */
.chafik-item {
    position: relative;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.chafik-item:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* IMAGE ZOOM */
.chafik-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    transition: transform 0.6s ease;
}

.chafik-item:hover::before {
    transform: scale(1.08);
}

/* OVERLAY (SANS FILTRE SOMBRE) */
.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;

    background: none; /* suppression du filtre sombre */
}

/* TITLE */
.overlay h3 {
    margin: 20px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(14px, 2vw, 22px);
    letter-spacing: 1px;

    transition: transform 0.3s ease;

    /* lisibilité sans assombrir l’image */
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.chafik-item:hover h3 {
    transform: translateY(-3px);
}

/* COLORS */
.text-white h3 {
    color: #fff;
}

.text-black h3 {
    color: #000;
}