/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Header */
header {
    background-color: #2c5530;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: normal;
}

header h1 a:hover {
    color: #b8d4bb;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 140px);
}

/* Homepage styles */
.homepage h1 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.homepage > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.7;
}

.lessons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.lesson-item {
    border-bottom: 1px solid #eee;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-item a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: #2c5530;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.lesson-item a:hover {
    background-color: #f8f9fa;
    color: #4a7c4e;
}

/* Lesson page styles */
.lesson {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-header {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c4e 100%);
    color: white !important;
    padding: 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 8px 8px 0 0;
}

.lesson-header h1 {
    color: white !important;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.episode-number {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.podcast-links {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.podcast-links h2 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.podcast-links p {
    margin-bottom: 0.5rem;
}

.podcast-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.podcast-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Audio players */
.audio-players {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.audio-players h2 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.audio-player {
    margin-bottom: 1rem;
}

.audio-player:last-child {
    margin-bottom: 0;
}

.audio-player h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.audio-player audio {
    width: 100%;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.audio-player audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness for audio players */
@media (max-width: 768px) {
    .audio-players {
        padding: 0.8rem;
    }
    
    .audio-player h3 {
        font-size: 0.9rem;
    }
    
    .audio-player audio {
        height: 35px;
    }
}

/* Lesson content */
.lesson-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.lesson-content h2 {
    color: #2c5530;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.lesson-content h3 {
    color: #4a7c4e;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

.lesson-content p {
    margin-bottom: 1rem;
}

.lesson-content strong {
    color: #2c5530;
    font-weight: 600;
}

.lesson-content ul, .lesson-content ol {
    margin: 1rem 0 1rem 2rem;
}

.lesson-content li {
    margin-bottom: 0.5rem;
}

/* Lesson navigation */
.lesson-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.lesson-nav a {
    color: #2c5530;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border: 1px solid #2c5530;
    border-radius: 4px;
    transition: all 0.2s;
}

.lesson-nav a:hover {
    background-color: #2c5530;
    color: white;
}

/* Footer */
footer {
    background-color: #2c5530;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

footer p {
    font-size: 0.9rem;
}

/* Podcast list styling */
.podcast-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.podcast-item {
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4a7c4e;
}

.podcast-item:last-child {
    margin-bottom: 0;
}

.podcast-title a {
    color: #2c5530;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.podcast-title a:hover {
    color: #4a7c4e;
}

.podcast-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Homepage new sections */
.main-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c4e 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
}

.main-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.main-header p {
    color: white;
    opacity: 0.9;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #2c5530;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

.program-section, .podcast-section {
    margin-bottom: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.program-overview {
    margin-bottom: 2rem;
    text-align: center;
}

.program-overview p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: #2c5530;
    color: white !important;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #4a7c4e;
}

.weeks-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.week-item {
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2c5530;
}

.week-item:last-child {
    margin-bottom: 0;
}

.week-title {
    color: #2c5530;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.week-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Apprentissage program page */
.apprentissage-program {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.program-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c4e 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: -2rem -2rem 3rem -2rem;
}

.program-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.program-header h2 {
    color: white;
    opacity: 0.9;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-description {
    color: white;
    opacity: 0.8;
    font-size: 1.1rem;
}

.week-section {
    margin-bottom: 3rem;
}

.week-title {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c5530;
}

.week-objective {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.lesson-list {
    list-style: none;
    padding: 0;
}

.lesson-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #4a7c4e;
}

.lesson-item a {
    color: #2c5530;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.lesson-item a:hover {
    color: #4a7c4e;
}

.lesson-description {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.program-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 6px;
    margin: 3rem 0;
}

.program-info h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.program-info ul {
    margin: 1rem 0;
}

.success-message {
    color: #4a7c4e;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 2rem;
}

.program-navigation {
    text-align: center;
    margin-top: 2rem;
}

.home-link {
    color: #2c5530;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid #2c5530;
    border-radius: 4px;
    transition: all 0.2s;
}

.home-link:hover {
    background-color: #2c5530;
    color: white;
}

/* Apprentissage lesson page */
.apprentissage-lesson {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.week-indicator, .day-number {
    background: #2c5530;
    color: white !important;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lesson-objectives {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    border-left: 4px solid #4a7c4e;
}

.lesson-objectives h2 {
    color: #2c5530;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.lesson-objectives ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #2c5530;
}

.lesson-objectives li {
    margin-bottom: 0.5rem;
}

.lesson-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-prev, .nav-next, .nav-index {
    color: #2c5530;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border: 1px solid #2c5530;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-prev:hover, .nav-next:hover, .nav-index:hover {
    background-color: #2c5530;
    color: white;
}

.progress-indicator {
    text-align: center;
}

.progress-indicator span {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5530, #4a7c4e);
    transition: width 0.3s ease;
}

.lesson-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    header nav {
        padding: 0 1rem;
    }
    
    .lesson, .apprentissage-lesson, .apprentissage-program {
        padding: 1.5rem;
    }
    
    .lesson-header h1 {
        font-size: 2rem;
    }
    
    .homepage h1, .main-header h1, .program-header h1 {
        font-size: 1.8rem;
    }
    
    .week-item, .podcast-item {
        padding: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-prev, .nav-next, .nav-index {
        text-align: center;
        flex: 1;
    }
    
    .lesson-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .program-section, .podcast-section {
        padding: 1.5rem;
    }
}