/* Styles pour la page La Voix des Apprentis */

/* Section hero */
.hero-section {
    background-color: var(--primary-color);
    padding: 3rem 0;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section .subtitle {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Section présentation */
.presentation-section {
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.presentation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.presentation-text h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.presentation-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.presentation-text h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
}

.presentation-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.presentation-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.presentation-text li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
    color: var(--text-color);
}

.directeur-info {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.presentation-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Section des journaux */
.journals-section {
    padding: 2rem 0 4rem;
    background-color: var(--light-bg);
}

.journals-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.journals-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.journal-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.journal-image {
    height: 300px;
    overflow: hidden;
}

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

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

.journal-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.journal-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.journal-theme {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    transition: background-color 0.3s ease;
    justify-content: center;
}

.btn-download:hover {
    background-color: var(--accent-color);
}

.no-journals, .error-message {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: #dc3545;
}

/* Mode sombre */
[data-theme="dark"] .presentation-text h2,
[data-theme="dark"] .presentation-text h3,
[data-theme="dark"] .journals-section h2 {
    color: var(--primary-light);
}

[data-theme="dark"] .presentation-text h2::after,
[data-theme="dark"] .journals-section h2::after {
    background-color: var(--primary-light);
}

[data-theme="dark"] .journal-card {
    background-color: var(--card-bg);
}

[data-theme="dark"] .journal-info h3 {
    color: var(--primary-light);
}

[data-theme="dark"] .directeur-info {
    background-color: var(--card-bg);
    border-color: var(--primary-light);
}

[data-theme="dark"] .btn-download {
    background-color: var(--primary-color);
}

[data-theme="dark"] .btn-download:hover {
    background-color: var(--accent-color);
}

[data-theme="dark"] .no-journals,
[data-theme="dark"] .error-message {
    background-color: var(--card-bg);
}

/* Media queries */
@media (max-width: 992px) {
    .presentation-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .presentation-image {
        order: -1;
    }
    
    .journals-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .subtitle {
        font-size: 1rem;
    }
    
    .journals-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .journal-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .presentation-text h2 {
        font-size: 1.5rem;
    }
    
    .presentation-text h3 {
        font-size: 1.2rem;
    }
    
    .journals-grid {
        grid-template-columns: 1fr;
    }
    
    .journal-image {
        height: 250px;
    }
} 