/* ============================================================
   STYLES POUR LE BLOG ET LES ARTICLES
   ============================================================ */

/* --- Page Liste des Articles (blog.html) --- */
.article-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-card-image-link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permet au contenu de remplir l'espace */
}

.article-card-category {
    display: inline-block;
    background-color: #f4f6f7;
    color: #555;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start; /* Aligne en haut à gauche */
}

.article-card-title a {
    text-decoration: none;
    color: #3c3c3c;
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #FFC107;
}

.article-card-excerpt {
    color: #555;
    margin-top: 10px;
    flex-grow: 1; /* Pousse le lien "Lire la suite" vers le bas */
}

.article-card-link {
    text-decoration: none;
    color: #FFC107;
    font-weight: 700;
    margin-top: 20px;
    align-self: flex-start;
}

.article-card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.article-card-link:hover i {
    transform: translateX(5px);
}


/* --- Page Détail d'un Article (article.html) --- */
.article-banner {
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 60px;
}

.container-narrow {
    max-width: 750px; /* Idéal pour la lecture */
    margin-left: auto;
    margin-right: auto;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-category {
    color: #FFC107;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-meta {
    color: #777;
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #3c3c3c;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
    margin-bottom: 1.5em;
}

.article-body h2, .article-body h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.4;
    font-weight: 700;
    color: #1a1a1a;
}

.article-body h2 { font-size: 1.8rem; }
.article-body h3 { font-size: 1.5rem; }

.article-body blockquote {
    font-style: italic;
    font-size: 1.2rem;
    padding-left: 20px;
    border-left: 4px solid #FFC107;
    color: #555;
}

.article-body ul, .article-body ol {
    padding-left: 25px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    font-weight: 700;
}

.article-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f4f6f7;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-share a:hover {
    background-color: #FFC107;
    color: #1a1a1a;
    transform: translateY(-3px);
}

/* Réduction de l'image de CTA sur la page article */
.final-cta-img-small {
    max-width: 150px;
    margin: 0 auto 20px;
}


/* --- Correction de la taille du titre de l'article --- */
.article-title {
    font-size: 2.5rem; /* Taille de base légèrement réduite */
    margin: 10px 0;
    font-weight: 800;
    color: #1a1a1a;
}

/* On réduit encore la taille pour les mobiles pour un meilleur équilibre */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem; /* Taille plus adaptée pour les mobiles */
    }
}