/* === BLOC ACTIVITÉ === */
.cpt-activite-block {
    max-width: 100%;
    margin: 0 auto;
    padding: 8rem 2rem;
}

/* === GRID LAYOUT === */
.cpt-activite-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 40px;
}

/* === ITEM STYLES === */
.cpt-activite-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.9s ease-out forwards;
}

.cpt-activite-item:hover {
    transform: scale(1.05);
}

/* === LIEN PRINCIPAL DE LA CARTE === */
.cpt-item-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

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

/* Animation progressive */
.cpt-activite-item:nth-child(1) { animation-delay: 0.1s; }
.cpt-activite-item:nth-child(2) { animation-delay: 0.2s; }
.cpt-activite-item:nth-child(3) { animation-delay: 0.3s; }
.cpt-activite-item:nth-child(4) { animation-delay: 0.4s; }
.cpt-activite-item:nth-child(5) { animation-delay: 0.5s; }
.cpt-activite-item:nth-child(6) { animation-delay: 0.6s; }
.cpt-activite-item:nth-child(7) { animation-delay: 0.7s; }
.cpt-activite-item:nth-child(8) { animation-delay: 0.8s; }
.cpt-activite-item:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === PLACEHOLDER IMAGE === */
.image-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: 3rem;
    color: #94a3b8;
    opacity: 0.7;
}

/* === IMAGE STYLES === */
.cpt-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.cpt-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cpt-activite-item:hover .cpt-thumbnail {
    transform: scale(1.1);
}

/* Overlay sombre pour le texte */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* === CONTENT STYLES === */
.cpt-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cpt-content-main {
    flex: 1;
    min-width: 0;
}

.cpt-content-icon {
    flex-shrink: 0;
    align-self: flex-end;
}

/* === STYLES POUR L'ICÔNE FLÈCHE === */
.cpt-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cpt-arrow-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
}

.cpt-arrow-icon .arrow-icon {
    color: white;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.cpt-activite-item:hover .cpt-arrow-icon .arrow-icon {
    transform: rotate(45deg);
}

/* === META ET TITRE === */
.cpt-item-meta {
    margin-bottom: 8px;
}

.cpt-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.cpt-item-title {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
    color: white;
    font-family: var(--gutenverse-font-family-okskxR);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* === EXTRAIT === */
.cpt-item-excerpt {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* === PRIX ACF === */
.cpt-item-price {
    text-align: left;
    margin-top: 8px;
}

.price-section {
    display: flex;
    align-items: baseline;
    font-family: var(--gutenverse-font-family-okskxR);
}

.heading-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

/* === FOOTER STYLES === */
.cpt-activite-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;
}

.cpt-view-all .arrow {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.cpt-view-all:hover .arrow {
    transform: translateX(4px);
}

/* === NO POSTS STYLES === */
.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;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .cpt-activite-block {
        padding: 40px 15px;
    }
    
    .cpt-activite-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 30px;
    }
    
    .cpt-item-content {
        padding: 15px;
    }
    
    .cpt-content-icon {
        margin-left: 10px;
    }
    
    .cpt-arrow-icon {
        width: 35px;
        height: 35px;
    }
    
    .cpt-arrow-icon .arrow-icon {
        font-size: 16px;
    }
    
    .cpt-item-title {
        font-size: 1.1rem;
    }
    
    .heading-subtitle {
        font-size: 1rem;
    }
    
    .cpt-view-all {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .cpt-no-posts {
        padding: 60px 30px;
    }
}

@media (max-width: 480px) {
    .cpt-activite-block {
        padding: 30px 10px;
    }
    
    .cpt-activite-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cpt-item-content {
        padding: 12px;
    }
    
    .cpt-content-icon {
        margin-left: 8px;
    }
    
    .cpt-arrow-icon {
        width: 30px;
        height: 30px;
        border-width: 1.5px;
    }
    
    .cpt-arrow-icon .arrow-icon {
        font-size: 14px;
    }
    
    .cpt-item-title {
        font-size: 0.95rem;
    }
    
    .heading-subtitle {
        font-size: 0.9rem;
    }
    
    .cpt-view-all {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}