
/* =========================================
   PAGE DE LECTURE D'UN ARTICLE
========================================= */

.article-page {
    padding-bottom: 75px;
}

.article-page .container {
    width: min(1160px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   FIL D'ARIANE
========================================= */

.article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 30px;
    padding-bottom: 25px;
    color: #7b8497;
    font-size: 13px;
}

.article-breadcrumb a {
    color: #1f3fd1;
    text-decoration: none;
    font-weight: 600;
}

.article-breadcrumb i {
    font-size: 10px;
    color: #aeb5c3;
}

.article-breadcrumb span {
    color: #697386;
}

/* =========================================
   PRÉSENTATION DE L'ARTICLE
========================================= */

.article-intro {
    padding-top: 18px;
    padding-bottom: 10px;
    text-align: left;
}

/* Navigation et catégorie */

.article-intro .article-header-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 17px;
}

.article-intro .article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #1f3fd1;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.article-intro .article-back-link:hover {
    color: #14288f;
}

.article-intro .article-category {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 5px 11px;
    border-radius: 5px;
    background: #eef1fd;
    color: #1f3fd1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* Image principale */

.article-intro .article-cover {
    display: block;
    width: 100%; 
    height: 310px;
    overflow: hidden;
    margin: 0 0 21px;
    padding: 0;
    border-radius: 9px;
    background: #eef1fd;
}

.article-intro .article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* Titre et résumé */

.article-intro .article-heading {
    display: block;
    width: 100%; 
    margin: 0;
    padding: 0;
    text-align: left;
}

.article-intro .article-heading h1 { 
    width: 100%; 
    margin: 0 0 11px;
    color: #14213d;
    font-size: clamp(25px, 2.8vw, 33px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.6px;
    text-align: left;
}

.article-intro .article-resume {
    width: 100%; 
    margin: 0 0 17px;
    color: #657087;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

/* Métadonnées */

.article-intro .article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0 0 10px; 
    border-bottom: 1px solid #e7eaf1;
    color: #788297;
    font-size: 11px;
}

.article-intro .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-intro .article-meta i {
    color: #1f3fd1;
}

/* =========================================
   CONTENU ET COLONNE LATÉRALE
========================================= */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 55px;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0;
}

/* CONTENU PRINCIPAL */

.article-content {
    min-width: 0;
}

.article-body {
    color: #424c60;
    font-size: 16px; 
    overflow-wrap: anywhere;
}


/* =========================================
   PARTAGE
========================================= */

.article-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    margin-top: 35px;
    border-top: 1px solid #e7eaf1;
    border-bottom: 1px solid #e7eaf1;
}

.article-share > span {
    color: #26334d;
    font-size: 14px;
    font-weight: 700;
}

.article-share-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-share-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #eef1fd;
    color: #1f3fd1;
    text-decoration: none;
    transition: .2s ease;
}

.article-share-links a:hover {
    background: #1f3fd1;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   RETOUR AU BLOG
========================================= */

.article-return {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: #1f3fd1;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.article-return:hover {
    color: #14288f;
}

/* =========================================
   COLONNE LATÉRALE FIXÉE À DROITE
========================================= */

.article-sidebar {
    position: sticky;
    top: 25px;
    align-self: start;
    min-width: 0;
    height: fit-content;
}

.article-sidebar-card {
    padding: 25px;
    border: 1px solid #e8ebf2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(15, 31, 107, .045);
}

.article-sidebar-label {
    color: #1f3fd1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.article-sidebar-card > h2 {
    margin: 10px 0 22px;
    color: #14213d;
    font-size: 21px;
    font-weight: 800;
}

.article-recent-list {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.article-recent-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    text-decoration: none;
}

.article-recent-image {
    width: 88px;
    height: 82px;
    overflow: hidden;
    border-radius: 9px;
    background: #eef1fd;
}

.article-recent-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.article-recent-item:hover img {
    transform: scale(1.06);
}

.article-recent-item span {
    display: block;
    margin-bottom: 5px;
    color: #1f3fd1;
    font-size: 10px;
    font-weight: 800;
	
	
}

.article-recent-item h3 {
    margin: 0 0 6px;
    color: #25314a;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
	
	  display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-recent-item small {
    color: #8a93a5;
    font-size: 11px;
}

.article-all-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    margin-top: 22px;
    border-top: 1px solid #edf0f5;
    color: #1f3fd1;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* =========================================
   ARTICLE INTROUVABLE
========================================= */

.article-not-found {
    max-width: 650px !important;
    padding-top: 100px;
    padding-bottom: 110px;
    text-align: center;
}

.article-not-found-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #eef1fd;
    color: #1f3fd1;
    font-size: 27px;
}

.article-not-found h1 {
    margin: 0 0 13px;
    color: #14213d;
    font-size: 30px;
    font-weight: 800;
}

.article-not-found p {
    margin: 0 0 25px;
    color: #68748a;
    line-height: 1.8;
}

.article-back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 21px;
    border-radius: 8px;
    background: #1f3fd1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.article-back-button:hover {
    background: #14288f;
    transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .article-sidebar {
        position: static;
    }

    .article-intro .article-cover {
        margin-bottom: 35px;
    }
}

@media (max-width: 600px) {

    .article-page {
        padding-bottom: 45px;
    }

    .article-page .container {
        width: calc(100% - 30px);
    }

    .article-breadcrumb {
        padding-top: 22px;
        padding-bottom: 15px;
        font-size: 11px;
        gap: 7px;
    }

    .article-intro {
        padding-top: 14px;
        padding-bottom: 24px;
    }

    .article-intro .article-header-top {
        gap: 11px;
        margin-bottom: 14px;
    }

    .article-intro .article-cover {
        height: 205px;
        margin-bottom: 17px;
        border-radius: 7px;
    }

    .article-intro .article-heading h1 {
        font-size: 23px;
        line-height: 1.35;
    }

    .article-intro .article-resume {
        font-size: 13px;
        line-height: 1.7;
    }

    .article-intro .article-meta {
        gap: 10px 15px;
    }

    .article-layout {
        width: calc(100% - 30px);
    }
 

    .article-sidebar-card {
        padding: 20px;
    }

    .article-share {
        align-items: flex-start;
        flex-direction: column;
    }
}
