/* =========================================================
   CONTENEUR DES NEWSLETTERS
   ========================================================= */

#listNewsLetter.listNewsLetter {
    width: 1100px;
    max-width: calc(100% - 40px);
    margin: 45px auto 70px;
    padding: 0;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    box-sizing: border-box;
}


/* =========================================================
   CARTE NEWSLETTER
   ========================================================= */

#listNewsLetter .newsletter-item {
    position: relative;
    width: auto !important;
    min-width: 0;

    min-height: 240px;

    box-sizing: border-box;

    display: flex !important;
    flex-direction: column !important;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #e6ebef;
    border-radius: 14px;

    text-decoration: none !important;

    color: #333;

    box-shadow: 0 4px 18px rgba(30, 60, 90, 0.06);

    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            border-color 0.25s ease;
}


/* =========================================================
   BARRE BLEUE À GAUCHE
   ========================================================= */

#listNewsLetter .newsletter-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 18px;
    bottom: 18px;

    width: 4px;

    background: #2d8bc9;

    border-radius: 0 4px 4px 0;

    transition: all 0.25s ease;
}


#listNewsLetter .newsletter-item:hover {
    transform: translateY(-4px);

    border-color: #cbdfea;

    box-shadow: 0 10px 28px rgba(30, 60, 90, 0.11);
}


#listNewsLetter .newsletter-item:hover::before {
    top: 0;
    bottom: 0;
}


/* =========================================================
   DATE
   ========================================================= */

#listNewsLetter .newsletter-month {
    width: 100% !important;
    min-width: 0 !important;

    height: auto;

    padding: 0 0 18px;

    display: flex !important;
    flex-direction: column !important;

    border: 0;

    border-bottom: 1px solid #edf0f2;

    box-sizing: border-box;
}


#listNewsLetter .newsletter-label {
    display: block;

    margin-bottom: 7px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: #2d8bc9;
}


#listNewsLetter .newsletter-date {
    display: block;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.1;

    color: #273846;
}


#listNewsLetter .newsletter-year {
    display: block;

    margin-top: 5px;

    font-size: 13px;

    color: #8a969f;
}


/* =========================================================
   CONTENU
   ========================================================= */

#listNewsLetter .newsletter-content {
    width: 100% !important;

    flex: 1;

    padding: 20px 0;

    box-sizing: border-box;
}


#listNewsLetter .newsletter-content h3 {
    margin: 0 0 12px;

    padding: 0;

    font-size: 18px;

    font-weight: 600;

    line-height: 1.3;

    color: #273846;

    transition: color 0.2s ease;
}


#listNewsLetter .newsletter-item:hover .newsletter-content h3 {
    color: #2d8bc9;
}


/* =========================================================
   LIRE LA NEWSLETTER
   ========================================================= */

#listNewsLetter .newsletter-read {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    font-weight: 500;

    color: #7d8991;
}


#listNewsLetter .newsletter-read i {
    font-size: 11px;

    transition: transform 0.2s ease;
}


#listNewsLetter .newsletter-item:hover .newsletter-read i {
    transform: translateX(4px);
}


/* =========================================================
   FLECHE
   ========================================================= */

#listNewsLetter .newsletter-arrow {
    width: 40px !important;
    height: 40px !important;

    min-width: 40px !important;

    margin-left: auto;

    align-self: flex-end;

    display: flex !important;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f0f7fb;

    color: #2d8bc9;

    transition: all 0.25s ease;
}


#listNewsLetter .newsletter-item:hover .newsletter-arrow {
    background: #2d8bc9;

    color: #ffffff;

    transform: translateX(4px);
}


/* =========================================================
   TITRE
   ========================================================= */

.newsletter-page-title {
    text-align: center;

    margin-bottom: 40px;
}


.newsletter-page-title p {
    margin: 0 0 10px;
    padding-top: 50px;
    font-size: 30px;

    font-weight: 600;

    line-height: 1.2;

    color: #056EA6;
}


.newsletter-page-title span {
    font-size: 20px;
    color: #7d8991;
}
#listNewsLetter .newsletter-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: 10px;

    background: #f3f6f8;

    box-sizing: border-box;
}


/* Image de la première page du PDF */

#listNewsLetter .newsletter-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: top center;

    transition: transform 0.35s ease;
}


/* Zoom léger au survol */

#listNewsLetter .newsletter-item:hover .newsletter-thumbnail img {
    transform: scale(1.03);
}


/* Voile au-dessus de l'image */

#listNewsLetter .newsletter-thumbnail-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 25px 15px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0)
    );

    opacity: 0;

    transition: opacity 0.25s ease;
}


/* Afficher "Lire" au survol */

#listNewsLetter .newsletter-item:hover .newsletter-thumbnail-overlay {
    opacity: 1;
}


#listNewsLetter .newsletter-thumbnail-overlay i {
    font-size: 16px;
}


/* =========================================================
   VIGNETTE PAR DÉFAUT SI LE JPG N'EST PAS DISPONIBLE
   ========================================================= */

#listNewsLetter .newsletter-thumbnail-default {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d8bc9;
    font-size: 50px;
    background: #f0f7fb;
}
/* =========================================================
   PAGINATION NEWSLETTERS
   ========================================================= */

.newsletter-pagination {
    width: 1100px;
    max-width: calc(100% - 40px);

    margin: 0 auto 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;
}


.newsletter-pagination a {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #e0e7eb;
    border-radius: 8px;

    background: #ffffff;

    color: #2d8bc9;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.2s ease;
}


.newsletter-pagination a:hover {
    border-color: #2d8bc9;

    background: #f0f7fb;

    transform: translateY(-1px);
}


.newsletter-pagination a.active {
    background: #2d8bc9;

    border-color: #2d8bc9;

    color: #ffffff;
}


.newsletter-pagination .pagination-arrow {
    font-size: 12px;
}
/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    #listNewsLetter.listNewsLetter {
        width: auto;

        max-width: calc(100% - 30px);

        grid-template-columns: repeat(2, 1fr) !important;

        gap: 20px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    #listNewsLetter.listNewsLetter {
        width: auto;

        max-width: calc(100% - 30px);

        grid-template-columns: 1fr !important;

        gap: 20px !important;
    }


    #listNewsLetter .newsletter-item {
        min-height: 210px;

        padding: 20px;
    }


    .newsletter-page-title p {
        font-size: 25px;
    }

}
