/* ================================================================
   blog_style.css — Blog Villa Giovanna
   #3874ab | Open Sans | Bootstrap 5
   ================================================================ */

/* ── Hero liste ── */

/* ── Hero liste ── */
.blog-page-hero {
    position: relative;
    background-image: url('../../images/blog_background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 110px 0 50px;
    text-align: center;
}

/* Overlay couleur #3873AA avec opacité */
.blog-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(56, 115, 170, 0.82);
    z-index: 0;
}

/* Le contenu passe au-dessus de l'overlay */
.blog-page-hero .container {
    position: relative;
    z-index: 1;
}


.blog-hero-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 36px; font-weight: 700; color: #fff;
    margin-bottom: 10px; text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.blog-hero-sub { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* ── Recherche ── */
.blog-search-form { max-width: 560px; margin: 0 auto; }
.blog-search-group { border-radius: 6px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.blog-search-input {
    border: none !important; padding: 14px 18px !important;
    font-size: 15px !important; color: #333 !important;
    background: #fff !important; box-shadow: none !important;
}
.blog-search-btn {
    background: #c0a16b !important; color: #fff !important;
    border: none !important; padding: 14px 22px !important;
    font-weight: 600; font-size: 14px; transition: background 0.2s; white-space: nowrap;
}
.blog-search-btn:hover { background: #a8895a !important; }

/* ── Layout principal ── */
.blog-main-container { padding-top: 50px; padding-bottom: 70px; }
.blog-section-title {
    font-family: 'Open Sans', sans-serif; font-size: 22px; font-weight: 700;
    color: #333; margin-bottom: 28px; padding-bottom: 12px;
    border-bottom: 3px solid #3874ab; display: inline-block;
}

/* ── Cards ── */
.blog-card {
    background: #fff; border-radius: 10px;
    overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    border: 1px solid #eef1f5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.blog-card-img-wrap { overflow: hidden; height: 190px; }
.blog-card-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.06); }
.blog-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 14px; font-size: 11px; color: #999; margin-bottom: 10px; }
.blog-card-meta i { margin-right: 3px; color: #3874ab; }
.blog-card-title { font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 700; color: #333; margin-bottom: 10px; line-height: 1.4; }
.blog-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.blog-card-title a:hover { color: #3874ab; }
.blog-card-chapeau {
    font-size: 13px; color: #666; line-height: 1.6; flex: 1; margin-bottom: 16px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.blog-read-more {
    font-size: 13px; font-weight: 600; color: #3874ab; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px; margin-top: auto; transition: gap 0.2s;
}
.blog-read-more:hover { color: #2a5a8a; gap: 8px; }

/* ── Pas de résultats ── */
.blog-no-results { text-align: center; padding: 60px 20px; color: #aaa; }
.blog-no-results p { margin-top: 12px; font-size: 15px; }

/* ── Lien retour ── */
.blog-back-link {
    font-size: 13px; color: #3874ab; text-decoration: none;
    font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s;
}
.blog-back-link:hover { color: #2a5a8a; }

/* ── Pagination ── */
.blog-pagination { margin-top: 40px; }
.blog-pagination .page-link { color: #3874ab; border-color: #d0dce8; }
.blog-pagination .page-item.active .page-link { background: #3874ab; border-color: #3874ab; color: #fff; }
.blog-pagination .page-link:hover { background: #eef3f8; color: #2a5a8a; }

/* ── Sidebar ── */
.blog-sidebar { position: sticky; top: 85px; }
.blog-sidebar-title {
    font-family: 'Open Sans', sans-serif; font-size: 17px; font-weight: 700;
    color: #333; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid #3874ab;
}
.blog-popular-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0;
    text-decoration: none; transition: opacity 0.2s;
}
.blog-popular-item:last-of-type { border-bottom: none; }
.blog-popular-item:hover { opacity: 0.8; }
.blog-popular-item img { width: 60px; height: 45px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.blog-popular-no-img {
    width: 60px; height: 45px; background: #eef3f8; border-radius: 5px;
    display: flex; align-items: center; justify-content: center; color: #3874ab; flex-shrink: 0;
}
.blog-popular-info { display: flex; flex-direction: column; gap: 3px; }
.blog-popular-title {
    font-size: 13px; font-weight: 600; color: #333; line-height: 1.4;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.blog-popular-views { font-size: 11px; color: #999; }
.blog-popular-views i { color: #3874ab; margin-right: 3px; }

/* ── Sidebar CTA ── */
.blog-sidebar-cta {
    background: #f1f6fa; border: 1px solid #d0dce8; border-radius: 8px;
    padding: 20px; margin-top: 28px; text-align: center;
}
.blog-sidebar-cta h4 { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px; }
.blog-sidebar-cta p { font-size: 13px; color: #666; margin-bottom: 14px; line-height: 1.5; }

/* ── Boutons CTA ── */
.blog-cta-btn {
    background: #3874ab !important; color: #fff !important; border: none !important;
    padding: 10px 20px; border-radius: 5px; font-weight: 600;
    font-size: 13px; transition: background 0.2s; text-decoration: none;
}
.blog-cta-btn:hover { background: #2a5a8a !important; color: #fff !important; }
.blog-cta-btn-outline {
    background: transparent !important; color: #fff !important;
    border: 2px solid rgba(255,255,255,0.6) !important; padding: 10px 20px;
    border-radius: 5px; font-weight: 600; font-size: 13px; transition: all 0.2s; text-decoration: none;
}
.blog-cta-btn-outline:hover { border-color: #fff !important; background: rgba(255,255,255,0.1) !important; }

/* ================================================================
   PAGE ARTICLE
   ================================================================ */

.blog-breadcrumb .breadcrumb { font-size: 12px; margin: 0; }
.blog-breadcrumb .breadcrumb-item a { color: #3874ab; text-decoration: none; }
.blog-breadcrumb .breadcrumb-item.active { color: #888; }

.blog-article-hero {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    margin-top: 0;      /* commence tout en haut, sous la navbar transparente */
}

.blog-breadcrumb {
    background: #f7f9fb;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
}


.blog-article-container { padding-top: 40px; padding-bottom: 70px; }

.blog-article-header { margin-bottom: 32px; }
.blog-article-title {
    font-family: 'Open Sans', sans-serif; font-size: 30px; font-weight: 700;
    color: #222; line-height: 1.3; margin-bottom: 14px;
}
.blog-article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #999; margin-bottom: 18px; }
.blog-article-meta i { color: #3874ab; margin-right: 4px; }
.blog-article-chapeau {
    font-size: 16px; color: #555; line-height: 1.7; font-style: italic;
    border-left: 4px solid #3874ab; padding-left: 16px; margin: 0;
}

/* Contenu article */
.blog-article-content { font-size: 15px; line-height: 1.8; color: #333; padding: 32px 0; border-top: 1px solid #eef1f5; }
.blog-article-content h2 {
    font-family: 'Open Sans', sans-serif; font-size: 22px; font-weight: 700;
    color: #222; margin-top: 36px; margin-bottom: 14px;
    padding-bottom: 8px; border-bottom: 2px solid #eef1f5;
}
.blog-article-content h3 { font-size: 18px; font-weight: 700; color: #333; margin-top: 28px; margin-bottom: 10px; }
.blog-article-content p { margin-bottom: 16px; }
.blog-article-content ul, .blog-article-content ol { margin-bottom: 16px; padding-left: 22px; }
.blog-article-content li { margin-bottom: 6px; }
.blog-article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 16px 0; }
.blog-article-content a { color: #3874ab; }
.blog-article-content blockquote {
    border-left: 4px solid #3874ab; padding-left: 16px;
    color: #555; font-style: italic; margin: 24px 0;
}
.blog-article-back { padding: 16px 0 32px; border-top: 1px solid #eef1f5; }

/* CTA Box bas d'article */
.blog-cta-box {
    background: linear-gradient(135deg, #3874ab 0%, #2a5a8a 100%);
    border-radius: 12px; padding: 32px 36px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; color: #fff; margin-top: 8px;
}
.blog-cta-content h3 { font-family: 'Open Sans', sans-serif; font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.blog-cta-content p { font-size: 14px; color: rgba(255,255,255,0.88); margin-bottom: 18px; line-height: 1.6; }
.blog-cta-img { 
    flex-shrink: 0;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    
    
     }

     .blog-cta-content .d-flex {
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 991px) { .blog-sidebar { position: static; margin-top: 50px; } }
@media (max-width: 767px) {
    .blog-hero-title { font-size: 26px; }
    .blog-article-title { font-size: 22px; }
    .blog-article-hero { height: 220px; }
    .blog-cta-box { flex-direction: column; text-align: center; padding: 24px 20px; }
    .blog-cta-img { display: none; }
    .blog-cta-content .d-flex { justify-content: center; }
}

.alignleft {
    float: left;
    margin: 4px 10px 0px 0;
    display: block;
    position: relative;
}