/* ========================================
   DOSSIER CHAPTERS - Navigation chapitres
======================================== */

.dossier-chapters {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-left: 4px solid #9E1514;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dossier-chapters h2 {
    color: #D0B74D;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.chapter-card {
    background: #0a0a0a;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid #2a2a2a;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chapter-card:hover {
    border-color: #9E1514;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(158, 21, 20, 0.3);
}

.chapter-card.current-chapter {
    border-color: #D0B74D;
    box-shadow: 0 0 20px rgba(208, 183, 77, 0.3);
}

.chapter-card a {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image de couverture du chapitre */
.chapter-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.chapter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.chapter-card:hover .chapter-image img {
    transform: scale(1.05);
}

.chapter-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95), transparent);
    pointer-events: none;
}

/* Contenu de la card */
.chapter-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chapter-number {
    font-size: 1rem;
    color: #D0B74D;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chapter-title {
    font-size: 0.85rem;
    font-weight: 400;
    color: #cccccc;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.current-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: #D0B74D;
    color: #0a0a0a;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(208, 183, 77, 0.4);
    z-index: 10;
}

/* Responsive */
@media (max-width: 1024px) {
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chapter-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .dossier-chapters {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chapter-image {
        height: 160px;
    }
    
    .chapter-content {
        padding: 1.25rem;
    }
    
    .dossier-chapters h2 {
        font-size: 1.3rem;
    }
    
    .current-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
}

