* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    color: #1a1a1a;
    line-height: 1.8;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: #1a237e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 215, 0, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 10px 50px rgba(0,0,0,0.15);
}

/* Header */
.journal-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 40px 60px;
    border-bottom: 5px solid #ffd700;
}

.journal-name {
    font-size: 3em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.journal-tagline {
    text-align: center;
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
    flex-wrap: wrap;
    gap: 10px;
}

.date, .edition, .powered {
    font-weight: bold;
}

/* Navigation entre journaux */
.journal-navigation {
    background: #f8f9fa;
    padding: 20px 60px;
    border-bottom: 2px solid #e0e0e0;
}

.nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    padding: 10px 20px;
    background: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
}

.nav-btn:hover {
    background: #283593;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-btn.nav-disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.nav-current {
    font-size: 1.1em;
    font-weight: bold;
    color: #1a237e;
}

.badge-today {
    background: #ffd700;
    color: #1a237e;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Main content */
.main-content {
    padding: 60px;
}

article h1 {
    font-size: 2.5em;
    line-height: 1.3;
    margin-bottom: 30px;
    color: #1a237e;
    border-bottom: 3px solid #ffd700;
    padding-bottom: 20px;
}

.chapeau {
    font-size: 1.3em;
    font-style: italic;
    color: #424242;
    background: #f8f9fa;
    padding: 30px;
    margin: 30px 0;
    border-left: 5px solid #1a237e;
    line-height: 1.6;
}

section {
    margin: 50px 0;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: 1.8em;
    color: #283593;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

section h2::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ffd700;
}

section p {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 20px;
    color: #333;
}

.conclusion {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 40px;
    margin: 50px 0;
    border-radius: 10px;
    border-left: 5px solid #1a237e;
}

.conclusion h2 {
    color: #1a237e;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Sources section */
.sources-section {
    background: #f5f5f5;
    padding: 40px 60px;
    border-top: 3px solid #1a237e;
}

.sources-section h2 {
    font-size: 1.8em;
    color: #1a237e;
    margin-bottom: 30px;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 1.5em;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.source-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #1a237e;
}

.source-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.source-card h3 {
    font-size: 1.1em;
    color: #1a237e;
    margin-bottom: 10px;
    line-height: 1.4;
}

.source-card a {
    color: #1a237e;
    text-decoration: none;
    font-weight: bold;
}

.source-card a:hover {
    color: #ffd700;
    text-decoration: underline;
}

.source-meta {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.source-description {
    font-size: 0.95em;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}

/* Footer */
.journal-footer {
    background: #263238;
    color: white;
    padding: 30px 60px;
    text-align: center;
}

.footer-info {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Archives page */
.archives-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 60px;
    text-align: center;
}

.archives-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.archives-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.archives-content {
    padding: 40px 60px;
}

.archive-month {
    margin-bottom: 50px;
}

.month-title {
    font-size: 2em;
    color: #1a237e;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffd700;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.archive-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid #1a237e;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.archive-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a237e;
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.archive-date .day {
    font-size: 2em;
    font-weight: bold;
}

.archive-date .month {
    font-size: 1em;
    text-transform: uppercase;
}

.archive-info {
    flex: 1;
}

.archive-info h3 {
    font-size: 1.2em;
    color: #1a237e;
    margin-bottom: 10px;
}

.archive-meta {
    font-size: 0.9em;
    color: #666;
}

.no-archives {
    text-align: center;
    padding: 60px;
}

.no-archives p {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 30px;
}

.btn-home {
    display: inline-block;
    padding: 15px 30px;
    background: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-home:hover {
    background: #283593;
    transform: translateY(-2px);
}

/* No journals page */
.no-journal-page {
    text-align: center;
    padding: 100px 60px;
}

.no-journal-icon {
    font-size: 5em;
    margin-bottom: 30px;
}

.no-journal-page h1 {
    font-size: 2.5em;
    color: #1a237e;
    margin-bottom: 20px;
}

.no-journal-page p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 15px;
}

.no-journal-page .hint {
    margin-top: 30px;
    font-style: italic;
}

.no-journal-page code {
    display: block;
    background: #263238;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .journal-header,
    .main-content,
    .sources-section,
    .journal-footer,
    .archives-content,
    .journal-navigation {
        padding: 30px 20px;
    }
    
    .journal-name {
        font-size: 2em;
    }
    
    article h1 {
        font-size: 1.8em;
    }
    
    .sources-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-controls {
        flex-direction: column;
    }
    
    .meta-info {
        flex-direction: column;
        text-align: center;
    }
}
