/* === BLOC ACTIVITÉS === */
.cpt-list-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

/* === CARTES ACTIVITÉS === */
.cpt-list-item {
    position: relative;
    aspect-ratio: 3/4; /* Format plus haut (3:4 au lieu de 1:1) */
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.9s ease-out forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cpt-list-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(185, 160, 140, 0.2);
}

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

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

/* === SYSTÈME DE FILTRAGE === */
.cpt-item-hide {
    display: none !important;
}

/* === BOUTONS DE FILTRAGE === */
.cpt-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(226, 232, 240, 0.3);
    justify-content: center;
    align-items: center;
}

.cpt-filter-btn {
    background-color: #fff;
    border: 2px solid #eaeaeb;
    color: #575a5f;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cpt-filter-btn:hover {
    border-color: #B9A08C;
    color: #B9A08C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #B9A08C
}

.cpt-filter-btn.active {
    background-color: #B9A08C;
    border-color: #B9A08C;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px #B9A08C
}

.cpt-filter-btn.active:hover {
    background-color: #64403E;
    border-color: #64403E;
    color: #fff;
}

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

/* Effet de brillance au survol */
.cpt-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

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

/* === LIEN PRINCIPAL === */
.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;
}

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

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

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

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

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

/* === OVERLAY === */
.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.2) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* === CONTENU === */
.cpt-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    min-height: 200px; /* Hauteur minimale pour plus de contenu */
}

.cpt-content-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

/* === MÉTADONNÉES === */
.cpt-item-meta {
    margin-bottom: 10px;
}

.cpt-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* === TITRE === */
.cpt-item-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.2;
    color: white;
    font-family: var(--gutenverse-font-family-okskxR, inherit);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* === EXTRAIT === */
.cpt-item-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* === PRIX === */
.cpt-item-price {
    text-align: left;
    margin: 10px 0;
}

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

.price-section .heading-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* === ICÔNE FLÈCHE === */
.guten-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    text-decoration: none;
    color: white;
}

.guten-icon-wrapper:hover,
.cpt-list-item:hover .guten-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

.guten-icon-wrapper i {
    color: white;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cpt-list-item:hover .guten-icon-wrapper i {
    transform: rotate(-45deg);
}

/* === FOOTER === */
.cpt-list-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 2px solid rgba(185, 160, 140, 0.2);
}

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

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

.cpt-view-all .arrow {
    transition: transform 0.3s ease;
}

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

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

.no-posts-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    opacity: 0.7;
}

.cpt-no-posts h3 {
    color: #64403E;
    margin-bottom: 15px;
    font-size: 1.75rem;
    font-weight: 600;
}

.cpt-no-posts p {
    color: #8B7355;
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.cpt-no-posts small {
    color: #B9A08C;
}

/* === ICÔNE FLÈCHE POUR .cpt-content-icon === */
.cpt-content-icon {
    flex-shrink: 0;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpt-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

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

.arrow-icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

/* Animation pulse pour la nouvelle flèche */
.cpt-list-item:hover .cpt-arrow-icon {
    animation: pulse 2s infinite;
}



/* === RESPONSIVE === */
@media (max-width: 768px) {
    .cpt-list-block {
        padding: 40px 15px;
    }
    
    .cpt-list-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .cpt-list-item {
        aspect-ratio: 3/4;
    }
    
    .cpt-item-content {
        padding: 20px;
        min-height: 160px;
        gap: 15px;
    }
    
    .cpt-item-title {
        font-size: 1.3rem;
    }
    
    .cpt-item-excerpt {
        font-size: 0.9rem;
    }
    
    .price-section .heading-subtitle {
        font-size: 1.6rem;
    }
    
    .guten-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .guten-icon-wrapper i {
        font-size: 16px;
    }
    
    .cpt-view-all {
        padding: 15px 28px;
        font-size: 1rem;
    }
    
    .cpt-no-posts {
        padding: 80px 30px;
    }
    
    .no-posts-icon {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .cpt-list-block {
        padding: 30px 10px;
    }
    
    .cpt-list-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cpt-list-item {
        aspect-ratio: 4/5; /* Moins haut sur mobile */
    }
    
    .cpt-item-content {
        padding: 20px;
        min-height: 140px;
    }
    
    .cpt-item-title {
        font-size: 1.2rem;
    }
    
    .cpt-item-excerpt {
        font-size: 0.85rem;
    }
    
    .price-section .heading-subtitle {
        font-size: 1.4rem;
    }
    
    .guten-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .guten-icon-wrapper i {
        font-size: 14px;
    }
    
    .cpt-view-all {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .cpt-no-posts {
        padding: 60px 20px;
    }
    
    .no-posts-icon {
        font-size: 3rem;
    }
    
    .cpt-no-posts h3 {
        font-size: 1.4rem;
    }
    
    .cpt-no-posts p {
        font-size: 1rem;
    }
}

/* === ANIMATIONS SUPPLÉMENTAIRES === */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.cpt-list-item:hover .guten-icon-wrapper {
    animation: pulse 2s infinite;
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    .cpt-list-item {
        animation: none;
        opacity: 1;
    }
    
    .cpt-list-item:hover {
        transform: none;
    }
    
    .cpt-thumbnail {
        transition: none;
    }
    
    .cpt-list-item:hover .cpt-thumbnail {
        transform: none;
    }
    
    .cpt-list-item:hover .guten-icon-wrapper {
        animation: none;
    }
}