/**********************************************
 * LISTE DES ARTICLES
 **********************************************/
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}
/**********************************************
 * CARTE ARTICLE
 **********************************************/
.article-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    height: 100%;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
/**********************************************
 * IMAGE
 **********************************************/
.article-card-image {
    width: 100%;
    height: 220px;           /* hauteur fixe */
    overflow: hidden;
    background: #f4f4f4;
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* recadre sans déformer */
    display: block;
}
/**********************************************
 * CONTENU
 **********************************************/
.article-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}
.article-category {
    display: inline-block;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 12px;
    background: #f0f4ff;
    color: #2453ff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
    line-height: 1.3;
    /* Limiter à 2 lignes */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Limiter à 4 lignes */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/**********************************************
 * BOUTON
 **********************************************/
.article-readmore {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 18px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}
.article-readmore:hover {
    background: #004fa3;
}
/**********************************************
 * RESPONSIVE
 **********************************************/

@media (max-width: 768px) {

    .articles-grid {
        grid-template-columns: 1fr;
    }
    .article-card-image {
        height: 200px;
    }
    .article-title {
        font-size: 1.2rem;
    }
}
/**********************************************
 * ARTICLE COMPLET
 **********************************************/
.article-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
/**********************************************
 * EN-TÊTE
 **********************************************/
.article-header {
    margin-bottom: 40px;
}
.article-category {
    display: inline-block;
    background: #eef4ff;
    color: #1e63d6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.article-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #222;
    margin-bottom: 20px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
}
/**********************************************
 * IMAGE PRINCIPALE
 **********************************************/
.article-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 40px;
}
.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/**********************************************
 * Résumé
 **********************************************/
.article-resume {
    max-width: 100%;
    margin: 0 auto;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.9;
}
/**********************************************
 * TITRES
 **********************************************/
.article-resume p {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #222;
    background-color: #f8f6f6;
}
.article-resume h4 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #333;
}
/**********************************************
 * CONTENU
 **********************************************/
.article-content {
    max-width: 850px;
    margin: 0 auto;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.9;
}
/**********************************************
 * TITRES
 **********************************************/
.article-content h2 {
    margin-top: 50px;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #222;
}
.article-content h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #222;
}
.article-content h4 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #333;
}
/**********************************************
 * PARAGRAPHES
 **********************************************/
.article-content p {
    margin-bottom: 24px;
}
/**********************************************
 * LIENS
 **********************************************/
.article-content a {
    color: #0066cc;
    text-decoration: none;
}
.article-content a:hover {
    text-decoration: underline;
}
/**********************************************
 * LISTES
 **********************************************/
.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}
.article-content li {
    margin-bottom: 10px;
}
/**********************************************
 * CITATIONS
 **********************************************/
.article-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    border-left: 5px solid #0066cc;
    background: #f7f9fc;
    font-style: italic;
    color: #444;
}
/**********************************************
 * TABLEAUX
 **********************************************/
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}
.article-content th {
    background: #f1f5f9;
    text-align: left;
    font-weight: 600;
}
.article-content th,
.article-content td {
    border: 1px solid #dbe1e8;
    padding: 12px;
}
/**********************************************
 * IMAGES DANS LE TEXTE
 **********************************************/
.article-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 30px auto;
    display: block;
}
/**********************************************
 * CODE
 **********************************************/
.article-content pre {
    background: #1e1e1e;
    color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}
.article-content code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.95em;
}
.article-content :not(pre) > code {
    background: #eef1f4;
    color: #c7254e;
    padding: 2px 6px;
    border-radius: 4px;
}
/**********************************************
 * SÉPARATEUR
 **********************************************/
.article-content hr {
    margin: 50px 0;
    border: none;
    border-top: 1px solid #ddd;
}
/**********************************************
 * RESPONSIVE
 **********************************************/

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    .article-featured-image {
        height: 300px;
    }
    .article-content {
        font-size: 1rem;
    }
    .article-content h2 {
        font-size: 1.6rem;
    }
    .article-content h3 {
        font-size: 1.3rem;
    }
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
}
/**********************************************
 * PARTAGE RESEAUX
 **********************************************/
.article-share {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;

    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #334155;
}

.share-btn {
    text-decoration: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: .3s;
}

.facebook {
    background: #1877f2;
}

.facebook:hover {
    background: #1667d9;
}

.linkedin {
    background: #0a66c2;
}

.linkedin:hover {
    background: #084f97;
}