/* =========================================================
   BLOG PUBLIC – STYLE ÉDITORIAL SOPHISTIQUÉ
========================================================= */

:root {
    --color-bg: #f6f7f9;
    --color-card: #ffffff;
    --color-text: #1f2933;
    --color-muted: #6b7280;
    --color-primary: #2563eb;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    font-family: "Inter", Arial, sans-serif;
    color: var(--color-text);
}

/* =========================================================
   CONTENEUR
========================================================= */

.cs-blog-container {
    max-width: 1280px;
    margin: 60px auto;
    padding: 0 24px;
}

.cs-blog-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
}

/* =========================================================
   GRILLE RESPONSIVE
========================================================= */

.cs-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* =========================================================
   CARTE ARTICLE
========================================================= */

.cs-article-card {
    background: var(--color-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cs-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* =========================================================
   IMAGE (TAILLE FIXE + AUCUNE DÉFORMATION)
========================================================= */

.cs-article-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
    background: #ddd;
}

/* =========================================================
   CORPS DE LA CARTE
========================================================= */

.cs-article-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cs-article-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.cs-article-meta {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 14px;
}

/* =========================================================
   CONTENU LIMITÉ (AVANT LECTURE COMPLÈTE)
========================================================= */

.cs-article-content {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;

    display: -webkit-box;
    -webkit-line-clamp: 4;     /* 🔒 nombre de lignes visibles */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

/* =========================================================
   BOUTON "LIRE LA SUITE"
========================================================= */

.cs-article-read-more {
    margin-top: auto;
    align-self: flex-start;

    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;

    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: transparent;
    text-decoration: none;

    transition: background .2s ease, color .2s ease;
}

.cs-article-read-more:hover {
    background: var(--color-primary);
    color: #fff;
}

/* =========================================================
   RESPONSIVE – TABLETTE
========================================================= */

@media (max-width: 900px) {
    .cs-blog-title {
        font-size: 30px;
    }

    .cs-article-image {
        height: 190px;
    }
}

/* =========================================================
   RESPONSIVE – MOBILE
========================================================= */

@media (max-width: 600px) {
    .cs-blog-container {
        margin: 40px auto;
        padding: 0 16px;
    }

    .cs-blog-title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .cs-article-image {
        height: 170px;
    }

    .cs-article-title {
        font-size: 18px;
    }
}
