/* Styles pour la page d'actualités */
.actualite-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* En-tête de la page */
.actualite-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #004d98 0%, #a50044 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.actualite-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.actualite-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Grille d'articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Carte d'article */
.article-card {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 77, 152, 0.15);
}

.article-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 2.5rem;
    text-align: justify;
}

.article-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #004d98;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: left;
    transition: color 0.3s ease;
}

.article-content h2:hover {
    color: #a50044;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.article-date, .article-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.article-date {
    background: linear-gradient(135deg, #a50044 0%, #ff4d6d 100%);
    color: white;
}

.article-category {
    background: linear-gradient(135deg, #004d98 0%, #0066cc 100%);
    color: white;
}

.article-date:hover, .article-category:hover {
    transform: translateY(-2px);
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.article-text p {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.article-text p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 700;
    color: #004d98;
    float: left;
    line-height: 1;
    padding-right: 0.5rem;
    padding-top: 0.2rem;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f2f5;
}

.article-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: #f0f2f5;
    color: #004d98;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: #004d98;
    color: white;
    transform: translateY(-2px);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.article-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.article-share a:hover {
    transform: translateY(-3px) scale(1.1);
}

.article-share a:nth-child(2) {
    background: #1877f2;
}

.article-share a:nth-child(3) {
    background: #1da1f2;
}

.article-share a:nth-child(4) {
    background: #25d366;
}

/* Animation de chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Styles pour l'article complet */
.article-full {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-full-image {
    width: 100%;
    margin: 0;
    padding: 0;
}

.article-full-image img {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.article-full-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

.article-full-content {
    padding: 2rem;
}

.article-full-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.article-full-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.article-full-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-full-text p {
    margin-bottom: 1.5rem;
}

/* Tags */
.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.article-tag {
    background: #f0f2f5;
    color: #004d98;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.article-tag:hover {
    background: #004d98;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .actualite-container {
        padding: 1rem;
    }

    .actualite-header {
        padding: 1.5rem 1rem;
    }

    .actualite-header h1 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-full-image {
        width: 100%;
    }
    
    .article-full-image img {
        width: 100%;
    }

    .article-full-content {
        padding: 1.5rem;
    }

    .article-full-title {
        font-size: 1.6rem;
    }

    .article-full-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-text p:first-of-type::first-letter {
        font-size: 2.8rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Styles pour les boutons de partage */
.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.whatsapp {
    background: #25d366;
}

/* Styles pour les articles similaires */
.similar-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.similar-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Styles pour les commentaires */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.comment {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

.comment-content {
    color: #444;
    line-height: 1.6;
}

/* Formulaire de commentaire */
.comment-form {
    margin-top: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    resize: vertical;
}

.comment-form button {
    background: #004d98;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form button:hover {
    background: #003d7a;
} 