/* === BLOC BENTO CPT === */
.cpt-bento-block {
    max-width: 80rem;
    margin: 0 auto;
    padding: 60px 20px;
}

.cpt-filter-btn {
    background: linear-gradient(135deg, #fff 0%, #f9f7f4 100%);
    border: 2px solid #eaeaeb;
    color: #575a5f;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.cpt-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(185, 160, 140, 0.1), transparent);
    transition: left 0.6s ease;
}

.cpt-filter-btn:hover::before {
    left: 100%;
}

.cpt-filter-btn:hover {
    border-color: #B9A08C;
    color: #B9A08C;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(185, 160, 140, 0.3);
}

.cpt-filter-btn.active {
    background: linear-gradient(135deg, #B9A08C 0%, #64403E 100%);
    border-color: #B9A08C;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(185, 160, 140, 0.4);
}

.cpt-filter-btn span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === GRILLE BENTO === */
/* Layout: 1 image gauche + 2 images droite étroites */
.bento-grid-cpt {
    display: grid;
    grid-template-columns: 2fr 4fr;
    grid-template-rows: 1fr 1fr; 
    gap: 3rem;
    padding: 20px 0;
    max-width: 80rem;
    margin: 0 auto;
    height: 40rem;
    margin-bottom: 40px;
}

/* === ÉLÉMENTS BENTO === */
.bento-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.bento-item:hover::before {
    opacity: 0.5;
}

/* === LIEN BENTO === */
.bento-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.bento-link:hover {
    text-decoration: none;
    color: inherit;
}

/* === IMAGES === */
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

/* === PLACEHOLDER === */
.bento-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    color: #94a3b8;
    opacity: 0.7;
}

/* === POSITIONNEMENT BENTO === */
/* Layout spécifique : 1ère image à gauche (grande), 2ème et 3ème à droite */
.bento-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3; /* Prend les 2 rangées */
}

.bento-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1; /* Première rangée à droite */
}

.bento-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2; /* Deuxième rangée à droite */
}

/* Masquer les éléments supplémentaires si plus de 3 */
.bento-item:nth-child(n+4) {
    display: none;
}

/* === FOOTER === */
.cpt-bento-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid rgba(226, 232, 240, 0.5);
}

.cpt-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #B9A08C 0%, #64403E 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(185, 160, 140, 0.3);
}

.cpt-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(185, 160, 140, 0.4);
    color: white;
    text-decoration: none;
}


/* === NO POSTS === */
.cpt-no-posts {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 2px dashed #cbd5e1;
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cpt-no-posts h3 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.cpt-no-posts p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* === MASQUAGE FILTRÉ === */
.bento-hide {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
    visibility: hidden;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .cpt-bento-block {
        padding: 40px 15px;
    }
    
    .bento-grid-cpt {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 15px;
        padding: 0 15px;
    }
    
    .bento-item:nth-child(1),
    .bento-item:nth-child(2),
    .bento-item:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
        height: 200px;
    }
    
    .bento-item:nth-child(n+4) {
        display: block;
        height: 200px;
    }
    
    .cpt-filter-buttons {
        gap: 10px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .cpt-filter-btn {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .cpt-view-all {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .cpt-no-posts {
        padding: 60px 30px;
    }
}

@media (max-width: 480px) {
    .cpt-bento-block {
        padding: 30px 10px;
    }
    
    .bento-grid-cpt {
        gap: 10px;
    }
    
    .bento-item:nth-child(1),
    .bento-item:nth-child(2),
    .bento-item:nth-child(3) {
        height: 20rem;
    }
    
    .bento-item:nth-child(n+4) {
        height: 20rem;
    }
    
    .cpt-filter-buttons {
        gap: 8px;
    }
    
    .cpt-filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .cpt-view-all {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .cpt-no-posts {
        padding: 60px 20px;*
    }
}