/* === COURSE-PAGES.CSS - Styles spécifiques aux pages de cours === */

/* Course header */
.course-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #2c3e50;
    padding: 120px 0 80px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.course-header .container {
    position: relative;
    z-index: 2;
}

.course-header h1 {
    color: #2c3e50;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.course-header p {
    color: #34495e;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.course-hero {
    position: relative;
    z-index: 2;
}

.course-title {
    color: #2c3e50 !important;
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8) !important;
}

.course-description {
    color: #34495e !important;
    opacity: 0.9 !important;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #34495e;
}

.breadcrumb span {
    color: #2c3e50;
    font-weight: 600;
}

/* Course hero layout */
.course-hero {
    display: flex;
    align-items: center;
    gap: 60px;
}

.course-hero-content {
    flex: 1;
}

.course-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.course-description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.course-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.theme-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-item i {
    font-size: 1.3rem;
}

.course-hero-image {
    flex: 0 0 400px;
}

.course-img {
    width: 400px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

/* Course content */
.course-content {
    padding: 80px 0;
}

.theme-section {
    margin-bottom: 80px;
}

.theme-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.theme-title i {
    color: #667eea;
    font-size: 2rem;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chapter-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.chapter-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 1.5rem;
    position: relative;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.chapter-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    padding-right: 0;
    order: 2;
}

.chapter-badge {
    position: static;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    order: 1;
    align-self: flex-start;
}

.chapter-content {
    padding: 2rem;
}

.chapter-resources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    text-align: center;
}

.resources {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.resource-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 15px;
    background: #f8fafc;
    border: 2px solid transparent;
    width: 120px;
    flex-shrink: 0;
}

.resource-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.resource-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

.resource-item:hover .resource-icon {
    transform: scale(1.1);
}

/* Resource icons */
.pdf-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.pdf-icon::before {
    content: 'PDF';
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.pdf-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 0 8px 0 8px;
    border-left: 2px solid #dc2626;
    border-bottom: 2px solid #dc2626;
}

.exercise-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #059669, #047857);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.exercise-icon i {
    color: white;
    font-size: 1.8rem;
}

.summary-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.summary-icon i {
    color: white !important;
    font-size: 1.8rem;
}

.correction-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.correction-icon i {
    color: white;
    font-size: 1.8rem;
}

.coming-soon-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.3);
}

.coming-soon-icon i {
    color: white;
    font-size: 1.8rem;
}

.resource-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
    transition: color 0.3s ease;
}

.resource-item:hover .resource-title {
    color: white;
}

.resource-item.coming-soon {
    opacity: 0.7;
}

.resource-item.coming-soon:hover {
    background: #94a3b8;
    color: white;
}

/* Course CTA */
.course-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 60px 0;
    border-radius: 25px;
    margin: 60px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons .btn-primary {
    background: white;
    color: #667eea;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-outline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Course pages responsive */
@media (max-width: 768px) {
    .course-header {
        min-height: 300px;
        padding: 100px 0 60px;
    }
    
    .course-header h1,
    .course-title {
        font-size: 2.5rem !important;
    }
    
    .course-header p,
    .course-description {
        font-size: 1.2rem !important;
    }
    
    .course-hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .course-title {
        font-size: 2.5rem;
    }
    
    .course-img {
        width: 320px;
        height: 240px;
    }
    
    .theme-title {
        font-size: 2rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
    }
    
    .chapter-resources {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .course-title {
        font-size: 2rem;
    }
    
    .course-img {
        width: 280px;
        height: 210px;
    }
    
    .chapter-resources {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .resource-icon {
        width: 50px;
        height: 50px;
    }
    
    .resource-title {
        font-size: 0.85rem;
    }
}


