/* === BLOC ALL CPT === */
.all-cpt-block {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* === SECTION CPT === */
.cpt-section {
    margin-bottom: 80px;
}

.cpt-section:last-child {
    margin-bottom: 0;
}

/* === HEADER DE SECTION === */
.cpt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(185, 160, 140, 0.2);
}

.cpt-section-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #64403E;
    font-family: var(--gutenverse-font-family-LtLS1G, inherit);
}

.cpt-view-all-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #B9A08C;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cpt-view-all-header:hover {
    color: #64403E;
    text-decoration: none;
    transform: translateX(5px);
}

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

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

/* === GRILLE === */
.cpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* === CARTES === */
.cpt-item {
    position: relative;
    aspect-ratio: 3/4;
    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-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(185, 160, 140, 0.2);
}

/* Animation progressive */
.cpt-item:nth-child(1) { animation-delay: 0.1s; }
.cpt-item:nth-child(2) { animation-delay: 0.2s; }
.cpt-item:nth-child(3) { animation-delay: 0.3s; }
.cpt-item:nth-child(4) { animation-delay: 0.4s; }

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

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

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

.cpt-content-icon {
    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);
}

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

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

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

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

/* === ICÔNE FLÈCHE === */
.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-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;
    transition: transform 0.3s ease;
}

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

/* === FOOTER DE SECTION === */
.cpt-section-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(185, 160, 140, 0.1);
}

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

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

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

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

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .cpt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .all-cpt-block {
        padding: 40px 15px;
    }
    
    .cpt-section {
        margin-bottom: 60px;
    }
    
    .cpt-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .cpt-section-title {
        font-size: 2rem;
    }
    
    .cpt-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
        padding: 20px;
        min-height: 160px;
        gap: 15px;
    }
    
    .cpt-item-title {
        font-size: 2.3rem;
    }
    
    .cpt-item-excerpt {
        font-size: 0.9rem;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .cpt-arrow-icon {
        width: 40px;
        height: 40px;
    }
    
    .arrow-icon {
        font-size: 16px;
    }
    
    .cpt-view-all {
        padding: 15px 28px;
        font-size: 1rem;
    }
    
    .all-cpt-no-posts {
        padding: 80px 30px;
    }
    
    .no-posts-icon {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .all-cpt-block {
        padding: 30px 10px;
    }
    
    .cpt-section {
        margin-bottom: 50px;
    }
    
    .cpt-section-title {
        font-size: 1.5rem;
    }
    
    .cpt-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cpt-item {
        aspect-ratio: 4/5;
    }
    
    .cpt-item-content {
        padding: 20px;
        min-height: 140px;
    }
    
    .cpt-item-title {
        font-size: 1.2rem;
    }
    
    .cpt-item-excerpt {
        font-size: 0.85rem;
    }
    
    .price-amount {
        font-size: 1.4rem;
    }
    
    .cpt-arrow-icon {
        width: 35px;
        height: 35px;
    }
    
    .arrow-icon {
        font-size: 14px;
    }
    
    .cpt-view-all {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .all-cpt-no-posts {
        padding: 60px 20px;
    }
    
    .no-posts-icon {
        font-size: 3rem;
    }
    
    .all-cpt-no-posts h3 {
        font-size: 1.4rem;
    }
    
    .all-cpt-no-posts p {
        font-size: 1rem;
    }
}

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

.cpt-item:hover .cpt-arrow-icon {
    animation: pulse 2s infinite;
}

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

/* === FOCUS POUR ACCESSIBILITÉ === */
.cpt-item-link:focus {
    outline: 3px solid #B9A08C;
    outline-offset: 4px;
    border-radius: 20px;
}

.cpt-view-all:focus,
.cpt-view-all-header:focus {
    outline: 3px solid #B9A08C;
    outline-offset: 4px;
}

/* === SÉPARATEURS ENTRE SECTIONS === */
.cpt-section + .cpt-section::before {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(135deg, #B9A08C 0%, #64403E 100%);
    margin: 0 auto 60px auto;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .cpt-section + .cpt-section::before {
        margin-bottom: 40px;
    }
}

/* === ÉTATS DE CHARGEMENT === */
.cpt-grid.loading .cpt-item {
    opacity: 0.6;
    pointer-events: none;
}

/* === HOVER EFFECTS AVANCÉS === */
.cpt-section-header {
    position: relative;
    overflow: hidden;
}

.cpt-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #B9A08C 0%, #64403E 100%);
    transition: width 0.3s ease;
}

.cpt-section:hover .cpt-section-header::after {
    width: 100%;
}