
/* ==========================================================================
   Blogs — mobile
   ========================================================================== */
@media (max-width: 991px) {

.blog-modern-section {
    background-color: #fcfcfc;
}

/* Style des Cartes */
.modern-card {
    background: #fff;
    border-radius:6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    height: 100%;
    border: none;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-5px);
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.modern-card.featured .card-image-wrapper {
    height: 350px; /* Plus grand pour l'article à la une */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-site-2);
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.article-title a {
    color: #000;
    text-decoration: none;
    transition: 0.2s;
}

.article-title a:hover {
    color: var(--color-site-1);
}

.article-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}





/* Sidebar */
.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius:6px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}





.mini-article {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.mini-article img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 15px;
}

.mini-content a {
    display: block;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    line-height: 1.2;
}

.mini-content span {
    font-size: 0.75rem;
    color: #aaa;
}

.modern-article-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.article-media-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.category-floating-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--color-site-2);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
   box-shadow: 0 4px 15px rgba(0, 52, 255, 0.3);
}

.article-meta-top .meta-item {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}
.meta-top i,
.article-meta-top i {
    color: var(--color-site-1);
    margin-right: 5px;
}

.article-text-render {
    line-height: 1.8;
    color: #444;
    font-size: 1.1rem;
}

/* Style spécifique pour les listes et images dans le texte raw */
.article-text-render img {
    max-width: 100%;
    border-radius: 4px;
    margin: 20px 0;
}

/* Sidebar Widgets */
.modern-sidebar .sidebar-widget {
    background: #fff;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid #f1f1f1;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-site-1);
}

/* Mini Posts Sidebar */
.mini-post-item {
    display: flex;
    text-decoration: none;
    margin-bottom: 18px;
    transition: 0.2s;
}

.mini-post-item:hover { transform: translateX(5px); }

.mini-post-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
}

.mini-post-img img { width: 100%; height: 100%; object-fit: cover; }

.mini-post-info h6 {
    color: #222;
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.mini-post-info small { color: #aaa; font-size: 0.8rem; }

/* Tags & Badges */
.badge-tag {
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 5px;
    transition: 0.2s;
}

.badge-tag:hover { background: var(--color-site-1); color: white; }

.cat-pill {
    background: #fff;
    border: 1px solid #eee;
    padding: 6px 15px;
    border-radius: 50px;
    text-decoration: none;
    color: #555;
    font-size: 0.85rem;
    transition: 0.3s;
}

.cat-pill:hover { border-color: var(--color-site-1); color: var(--color-site-1); }

.promo-widget {
    background: linear-gradient(135deg, #fff 0%, #fff5ef 100%) !important;
    border: 1px dashed var(--color-site-1) !important;
}

}

/* ==========================================================================
   Blogs — desktop
   ========================================================================== */
@media (min-width: 992px) {

@keyframes blog-cta-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2); }
    100% { box-shadow: 0 0 0 20px rgba(0, 0, 0, 0); }
}

.article-main .blog-article {
    border: 1px solid var(--color-site-2);
    padding: 15px;
    border-radius: 4px;
}

.blog-article .article-detail h1 {
    color: var(--color-site-2);
    font-weight: 600;
    margin: 0;
}

.blog-article .article-media img,
.blog-article .banner-slider .item,
.blog-article .banner-slider .item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-article .detail-article-new {
    padding: 15px 0 !important;
}

.blog-article .article-footer.footer-blog {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 15px 0 0 !important;
    background: transparent;
}

.blog-article .article-footer.footer-blog::before,
.blog-article .article-footer.footer-blog::after {
    display: none;
}

.blog-article .blog-footer-main {
    min-width: 0;
    flex: 1 1 auto;
}

.blog-article .blog-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-article .blog-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #6b6b6b;
    font-size: 13px;
    line-height: 1.3;
}

.blog-article .blog-footer-item i {
    color: var(--color-site-1);
}

.blog-article .blog-footer-cat a {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--color-site-2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.blog-article .blog-footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.blog-article .blog-footer-tags a {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 16px;
    background: #f4f6f8;
    color: #555;
    font-size: 12px;
    text-decoration: none;
}

.blog-article .blog-footer-tags a:hover {
    background: var(--color-site-1);
    color: #fff;
}

.blog-article .article-footer-right {
    float: none;
    flex: 0 0 auto;
    margin-top: 0;
    line-height: 1;
    align-self: center;
}

.blog-article .article-footer-right .btn.btn-primary {
    background: var(--color-site-1);
    animation: blog-cta-pulse 2s infinite;
}

.container-sidebar #sidebar.sidebar-white .widget h3.widget-title,
.container-sidebar #sidebar.sidebar-white .widget > .widget-top > h3.widget-title {
    border-radius: 25px 0 25px 25px;
    padding: 10px;
    color: #fff !important;
    text-align: center;
    margin-top: -40px;
}

.container-sidebar #sidebar.sidebar-white .widget:nth-child(3n+1) > .widget-top > h3 {
    background: var(--color-site-2);
}
.container-sidebar #sidebar.sidebar-white .widget:nth-child(3n+2) > .widget-top > h3 {
    background: var(--color-site-1);
}
.container-sidebar #sidebar.sidebar-white .widget:nth-child(3n+3) > .widget-top > h3 {
    background: var(--color-site-3);
}

.container-sidebar #sidebar.sidebar-white .widget:nth-child(3n+1) {
    border: 1px solid var(--color-site-2) !important;
}
.container-sidebar #sidebar.sidebar-white .widget:nth-child(3n+2) {
    border: 1px solid var(--color-site-1) !important;
}
.container-sidebar #sidebar.sidebar-white .widget:nth-child(3n+3) {
    border: 1px solid var(--color-site-3) !important;
}

.widget-blogs .blog-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-blogs .blog-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin: 0 -8px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.widget-blogs .blog-mini:hover {
    background: #f7f9fb;
}

.widget-blogs .blog-mini-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
}

.widget-blogs .blog-mini-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-blogs .blog-mini-body {
    min-width: 0;
    flex: 1;
}

.widget-blogs .blog-mini-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.widget-blogs .blog-mini:hover .blog-mini-title {
    color: var(--color-site-2);
}

.widget-blogs .blog-mini-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.widget-blogs .blog-mini-date i {
    color: var(--color-site-1);
}

}



/* ==========================================
   Intégration du Design System - Unités en PX
   ================================---------- */
:root {
    --color-site-1: #f6690c;
    --color-site-2: #2764ae;
    --color-site-3: #2A9ED1;
    --danger-500: #FF0000;
    --font : 'Helvetica Neue' !important;
    --color-border: #C7DBEB;
    --border-radius: 4px;
    --container-max-width: 1420px;
}

body {
    font-family: var(--font);
    color: #333333;
    background-color: #f9fbfc;
    line-height: 26px; /* 1.6 équivalent en px */
    margin: 0px;
    padding: 0px;
}

/* ==========================================
   Structure Principale
   ================================---------- */
.article-main {
    max-width: var(--container-max-width);
    margin: 40px auto;
    padding: 0px 20px;
}

.blog-article {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: 0px 4px 20px rgba(39, 100, 174, 0.05);
}

/* ==========================================
   Médias & Images
   ================================---------- */
.article-media img, 
.images-container img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
    object-fit: cover;
}

.article-media {
    margin-bottom: 30px;
}

/* ==========================================
   Typographie & Titres
   ================================---------- */

.article-detail h2 {
    font-size: 26px; /* Environ 1.6rem */
    color: var(--color-site-2);
    border-bottom: 3px solid var(--color-site-1);
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-detail h3 {
    font-size: 20px; /* Environ 1.25rem */
    color: var(--color-site-3);
  
    font-weight: 600;
}

.article-detail p {
  
    font-size: 16px; /* Environ 1.05rem / base standard */
}

.article-detail a {
    color: var(--color-site-3);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-detail a:hover {
    color: var(--color-site-1);
    text-decoration: underline;
}

/* ==========================================
   Listes
   ================================---------- */
.article-detail ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-detail ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.article-detail ul li::marker {
    color: var(--color-site-1);
}

/* ==========================================
   Tableaux
   ================================---------- */
.article-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0px;
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.article-detail th, 
.article-detail td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
}

.article-detail thead {
  
  
    font-weight: 600;
}


.article-detail tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   Pied d'article & Méta-informations
   ================================---------- */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.author-meta {
    list-style: none;
    padding: 0px;
    margin: 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 15px; /* Environ 0.95rem */
    color: #555555;
}

.author-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-meta i {
    color: var(--color-site-1);
}

/* ==========================================
   Responsive Design
   ================================---------- */
@media (max-width: 768px) {
    .blog-article {
        padding: 20px;
    }
    
    .article-detail h1 {
        font-size: 28px;
    }
    
    .article-detail h2 {
        font-size: 22px;
    }
    
    .author-meta {
        flex-direction: column;
        gap: 12px;
    }
}