/**
 * Les Dossiers Manager Styles
 * Compatible with Newspaper 12 theme
 */

/* ========================================
   ARCHIVE PAGE STYLES
   ======================================== */

.ldm-archive-wrapper {
    padding: 40px 0;
}

.ldm-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.ldm-archive-header .entry-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.ldm-archive-description {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Dossiers Grid */
.ldm-dossiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.ldm-dossier-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ldm-dossier-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.ldm-dossier-item .td-module-thumb {
    position: relative;
    overflow: hidden;
}

.ldm-dossier-item .td-module-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ldm-dossier-item:hover .td-module-thumb img {
    transform: scale(1.05);
}

.ldm-dossier-item .td-module-meta-info {
    padding: 20px;
}

.ldm-dossier-item .entry-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ldm-dossier-item .entry-title a {
    color: #222;
    text-decoration: none;
}

.ldm-dossier-item .entry-title a:hover {
    color: #4db2ec;
}

.ldm-dossier-item .td-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ldm-dossier-item .td-post-category {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: #4db2ec;
    color: #fff;
    margin-right: 5px;
    margin-bottom: 10px;
    text-decoration: none;
}

.ldm-dossier-item .td-post-category:hover {
    background: #222;
}

.ldm-read-more {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #4db2ec;
    text-decoration: none;
    text-transform: uppercase;
}

.ldm-read-more:hover {
    color: #222;
}

/* Pagination */
.ldm-pagination {
    text-align: center;
    margin-top: 40px;
}

.ldm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #e6e6e6;
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.ldm-pagination .page-numbers:hover,
.ldm-pagination .page-numbers.current {
    background: #4db2ec;
    color: #fff;
    border-color: #4db2ec;
}

/* ========================================
   SINGLE DOSSIER PAGE STYLES
   ======================================== */

.ldm-single-wrapper {
    padding: 40px 0;
}

.ldm-single-dossier {
    background: #fff;
    padding: 40px;
    margin-bottom: 40px;
}

.ldm-single-dossier .td-post-featured-image {
    margin-bottom: 30px;
}

.ldm-single-dossier .td-post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.ldm-single-dossier .td-post-title {
    margin-bottom: 30px;
}

.ldm-single-dossier .entry-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 15px;
}

.ldm-single-dossier .td-post-meta-info {
    font-size: 13px;
    color: #999;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6e6e6;
}

.ldm-single-dossier .td-post-meta-info span {
    margin-right: 15px;
}

.ldm-single-dossier .td-post-meta-info a {
    color: #4db2ec;
    text-decoration: none;
    margin-right: 8px;
}

.ldm-single-dossier .td-post-meta-info a:hover {
    color: #222;
}

.ldm-single-dossier .td-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.ldm-single-dossier .td-post-content p {
    margin-bottom: 20px;
}

/* Sommaire Section */
.ldm-sommaire {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid #4db2ec;
}

.ldm-sommaire-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
    text-align: center;
}

.ldm-sommaire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.ldm-child-article {
    background: #f9f9f9;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ldm-child-article:hover {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ldm-child-article .td-module-thumb {
    position: relative;
    overflow: hidden;
}

.ldm-child-article .td-module-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ldm-child-article:hover .td-module-thumb img {
    transform: scale(1.05);
}

.ldm-child-article .td-module-meta-info {
    padding: 18px;
}

.ldm-child-article .entry-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ldm-child-article .entry-title a {
    color: #222;
    text-decoration: none;
}

.ldm-child-article .entry-title a:hover {
    color: #4db2ec;
}

.ldm-child-article .td-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Back to Dossier Link (for articles) */
.ldm-back-to-dossier {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e6e6e6;
}

.ldm-back-link {
    display: inline-block;
    padding: 12px 24px;
    background: #f9f9f9;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.ldm-back-link:hover {
    background: #4db2ec;
    color: #fff;
}

.ldm-back-link i {
    margin-right: 8px;
}

/* Breadcrumb */
.ldm-breadcrumb {
    margin-bottom: 20px;
    padding: 12px 0;
    font-size: 13px;
    color: #999;
}

.ldm-breadcrumb-link {
    color: #4db2ec;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ldm-breadcrumb-link:hover {
    color: #222;
}

.ldm-breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

.ldm-breadcrumb-current {
    color: #666;
}

/* Related Articles */
.ldm-related-articles {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e6e6e6;
}

.ldm-related-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
}

.ldm-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ldm-related-item {
    background: #f9f9f9;
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ldm-related-item:hover {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ldm-related-item .td-module-thumb {
    position: relative;
    overflow: hidden;
}

.ldm-related-item .td-module-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ldm-related-item:hover .td-module-thumb img {
    transform: scale(1.05);
}

.ldm-related-item .td-module-meta-info {
    padding: 15px;
}

.ldm-related-item .entry-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ldm-related-item .entry-title a {
    color: #222;
    text-decoration: none;
}

.ldm-related-item .entry-title a:hover {
    color: #4db2ec;
}

.ldm-related-item .td-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Article Wrapper Specific Styles */
.ldm-article-wrapper .td-post-content {
    margin-bottom: 30px;
}

.ldm-article-wrapper .td-post-author {
    margin-right: 15px;
}

.ldm-article-wrapper .td-post-author a {
    color: #4db2ec;
    text-decoration: none;
}

.ldm-article-wrapper .td-post-author a:hover {
    color: #222;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 767px) {
    .ldm-dossiers-grid,
    .ldm-sommaire-grid {
        grid-template-columns: 1fr;
    }
    
    .ldm-single-dossier {
        padding: 20px;
    }
    
    .ldm-single-dossier .entry-title {
        font-size: 28px;
    }
    
    .ldm-archive-header .entry-title {
        font-size: 28px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .ldm-dossiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ldm-sommaire-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
