/* Styles pour l'affichage frontend de la taxonomie Dossier */

.dossier-archive {
    margin: 20px 0;
}

.dossier-header {
    /* Styles déplacés vers shortcode.css pour une meilleure compatibilité */
    margin-bottom: 30px;
}

.dossier-title {
    margin: 0 0 10px 0;
    color: #1e1e1e;
    font-size: 2.5em;
    font-weight: 700;
}

.dossier-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

.dossier-meta {
    margin-top: 15px;
    font-size: 0.9em;
    color: #888;
}

.dossier-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.dossier-post-item {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.dossier-post-item:hover {
    box-shadow: none;
    transform: translateY(-5px);
    border: none;
    text-decoration: none;
    color: inherit;
}

.dossier-post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.dossier-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    transition: transform 0.3s ease;
}

.dossier-post-item:hover .dossier-post-thumbnail img {
    transform: scale(1.05);
}

.dossier-no-image {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    margin: 15px;
    background: linear-gradient(135deg, #ee142c, #ff4757);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

.dossier-no-image-icon {
    filter: brightness(1.2);
}

.dossier-post-content {
    padding: 20px;
}

.dossier-post-title {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.4;
    color: #1e1e1e;
    transition: color 0.3s ease;
}

.dossier-post-item:hover .dossier-post-title {
    color: #ee142c;
}

.dossier-post-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.dossier-post-meta {
    display: none;
}

/* Responsive design */
@media (max-width: 992px) {
    .dossier-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .dossier-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dossier-header {
        padding: 20px;
    }
    
    .dossier-title {
        font-size: 2em;
    }
    
    .dossier-post-content {
        padding: 15px;
    }
    
    .dossier-post-thumbnail {
        height: 180px;
    }
}

.dossier-pagination {
    margin-top: 40px;
    text-align: center;
}

.dossier-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #ee142c;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dossier-pagination .page-numbers:hover,
.dossier-pagination .page-numbers.current {
    background: #ee142c;
    color: #fff;
    border-color: #ee142c;
}

.dossier-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #666;
}

.dossier-breadcrumb a {
    color: #ee142c;
    text-decoration: none;
}

.dossier-breadcrumb a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 992px) {
    .dossier-posts {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .dossier-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dossier-header {
        padding: 20px;
    }
    
    .dossier-title {
        font-size: 2em;
    }
    
    .dossier-post-content {
        padding: 15px;
    }
    
    .dossier-post-thumbnail {
        height: 180px;
    }
    
    .dossier-post-item {
        padding: 20px;
    }
    
    .dossier-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
