/* Courses Page Moderne - Design System Unifié */

/* Page Header */
.courses-page-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    color: white;
    padding: 4rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

.courses-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-description {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
}

.header-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header Decoration */
.header-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Courses Page */
.courses-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Courses Section */
.courses-section {
    margin-bottom: 4rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Course Card */
.course-card {
    background: white;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.02) 0%, rgba(44, 82, 130, 0.01) 100%);
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
    border-color: #cbd5e1;
}

/* Course Image Wrapper */
.course-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.course-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.course-placeholder-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.course-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.course-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.level-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Course Card Body */
.course-card-body {
    padding: 0 2rem 1.5rem;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.course-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.course-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

/* Course Badges */
.course-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.badge-duration {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-diploma {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-more {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.course-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Course Card Footer */
.course-card-footer {
    padding: 1.5rem 2rem 2rem;
}

.course-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

.course-btn-primary:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 50%, #3182ce 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.4);
    color: white;
    text-decoration: none;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.course-btn-primary:hover .btn-shine {
    left: 100%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
}

.empty-icon-wrapper {
    margin-bottom: 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 1rem 0;
}

.empty-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Modules Section */
.modules-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2b6cb0 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.section-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-title {
        font-size: 2.5rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .courses-page-header {
        padding: 3rem 1.5rem 2rem;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-description {
        font-size: 1rem;
    }
    
    .header-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .courses-page {
        padding: 2rem 1.5rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .course-card-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .course-card-body {
        padding: 0 1.5rem 1.5rem;
    }
    
    .course-card-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .courses-page-header {
        padding: 2rem 1rem 1.5rem;
    }
    
    .header-title {
        font-size: 1.75rem;
    }
    
    .header-description {
        font-size: 0.9375rem;
    }
    
    .header-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .courses-page {
        padding: 1.5rem 1rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .course-title {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .header-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .header-description {
        font-size: 0.875rem;
    }
    
    .header-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.6875rem;
    }
    
    .courses-page-header {
        padding: 1.5rem 0.75rem 1rem;
    }
    
    .courses-page {
        padding: 1rem 0.75rem;
    }
    
    .course-card-header {
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .course-card-body {
        padding: 0 1rem 1rem;
    }
    
    .course-card-footer {
        padding: 1rem;
    }
    
    .course-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .course-title {
        font-size: 1rem;
    }
    
    .course-subtitle {
        font-size: 0.75rem;
    }
    
    .course-description {
        font-size: 0.75rem;
    }
    
    .course-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
    
    .course-btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-title {
        font-size: 1.25rem;
    }
    
    .empty-description {
        font-size: 0.875rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-description {
        font-size: 0.875rem;
    }
}
