/* ==========================================================================
   1. COULEURS DE L'INSTITUT (BLEU #1a365d)
   ========================================================================== */

/* C'est ICI le correctif : Le vrai nom du sous-titre dans Mainroad */
.logo__tagline {
    color: #1a365d !important;
}

/* La barre sous le menu noir */
.header {
    border-bottom: 5px solid #1a365d !important;
}

/* Les lignes sous "THÈMES" et "RECENT" */
.widget-title {
    border-bottom: 2px solid #1a365d !important;
}

/* Le survol des thèmes */
.widget-taglist a:hover {
    color: #1a365d !important;
}

/* Le survol des derniers articles */
.widget-recent .widget__link:hover {
    color: #1a365d !important;
}

/* La pagination (carré de la page active) */
.pagination__item--current {
    background-color: #1a365d !important;
    border-color: #1a365d !important;
}

/* ==========================================================================
   2. MISE EN PAGE : ORDINATEUR (Vignette à gauche)
   ========================================================================== */
@media screen and (min-width: 601px) {
    .list__item {
        display: grid !important;
        /* Colonne image: 250px | Colonne texte: le reste */
        grid-template-columns: 250px 1fr !important;
        grid-template-areas: 
            "vignette entete" 
            "vignette contenu" 
            "vignette pied" !important;
        column-gap: 30px !important;
        margin-bottom: 50px !important;
        align-items: start !important;
    }

    .list__thumbnail { grid-area: vignette !important; margin: 0 !important; }
    .list__header    { grid-area: entete !important;   margin: 0 !important; }
    .list__excerpt   { grid-area: contenu !important;  margin: 0 !important; }
    .list__footer    { grid-area: pied !important;     margin: 0 !important; }

    .list__thumbnail img {
        width: 250px !important;
        height: 250px !important;
        object-fit: cover !important;
    }
}

/* ==========================================================================
   3. MISE EN PAGE : SMARTPHONE (Tout empilé)
   ========================================================================== */
@media screen and (max-width: 600px) {
    .list__item {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 40px !important;
    }

    .list__thumbnail {
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }

    .list__thumbnail img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }
}

/* ==========================================================================
   4. FINITIONS (Espaces et Boutons)
   ========================================================================== */

/* Espace sous la date */
.list__meta, .post__meta {
    margin-bottom: 20px !important;
    display: block !important;
}

/* Coupe le texte après 3 lignes */
.list__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0 !important;
}

/* Bouton "Lire la suite" simple */
.list__footer-readmore.btn {
    background-color: transparent !important;
    color: #000000 !important;
    font-style: italic !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin-top: 10px !important;
}