/* ============================================
   Blog - Easy Concierge
   Styles pour listing et article
   ============================================ */

/* --- HERO BLOG --- */
.blog-hero {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #1a3a4a 100%);
    color: white;
    padding: 60px 20px 50px;
    text-align: center;
}
.blog-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.blog-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- FILTRES CATEGORIES --- */
.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px 20px 10px;
    max-width: 900px;
    margin: 0 auto;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
    border-color: #2980b9;
    color: #2980b9;
}
.filter-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* --- GRILLE DES ARTICLES --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; max-width: 450px; }
    .blog-hero h1 { font-size: 28px; }
}

/* --- CARD ARTICLE --- */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}
.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}
.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}
.blog-card-image-wrapper {
    overflow: hidden;
    height: 180px;
}
.blog-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.blog-badge {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-card-date {
    font-size: 13px;
    color: #999;
}
.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.blog-card-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2980b9;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    text-decoration: none;
}
.blog-card-read:hover {
    color: #1a5276;
}

/* --- PAGE ARTICLE --- */
.article-header {
    padding: 40px 20px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.article-breadcrumb {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}
.article-breadcrumb a {
    color: #999;
    text-decoration: none;
}
.article-breadcrumb a:hover {
    color: #2980b9;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.article-title {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1.2;
    margin: 0 0 15px 0;
}
.article-excerpt {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.article-featured-image {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
}
.article-featured-image img {
    width: 100%;
    border-radius: 16px;
    max-height: 450px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* --- CONTENU ARTICLE --- */
.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}
.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}
.article-content h4 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}
.article-content p,
.article-content .article-text p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}
.article-content .article-text {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #444;
}
.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #444;
}
.article-content ul li { list-style-type: disc; }
.article-content ol li { list-style-type: decimal; }
.article-content blockquote {
    border-left: 4px solid #2980b9;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f0f7ff;
    border-radius: 0 8px 8px 0;
}
.article-content blockquote p {
    margin-bottom: 0;
    color: #1a5276;
    font-style: italic;
}
.article-content blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 14px;
    color: #2980b9;
    font-style: normal;
}
.article-content a {
    color: #2980b9;
    text-decoration: underline;
}
.article-content a:hover {
    color: #1a5276;
}
.article-content strong {
    color: #2c3e50;
}
.article-content .article-figure {
    margin: 1.5rem 0;
}
.article-content .article-figure img {
    width: 100%;
    border-radius: 12px;
}
.article-content .article-figure figcaption {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- SECTIONS HERO / CTA dans articles syndiqués --- */
.article-content .hero,
.article-content .cta-box {
    color: #fff;
}
.article-content .hero p,
.article-content .hero .subtitle,
.article-content .cta-box p {
    color: rgba(255,255,255,0.85);
}
.article-content .hero h1,
.article-content .hero h2,
.article-content .cta-box h2,
.article-content .cta-box h3 {
    color: #fff;
}
.article-content .hero a,
.article-content .cta-box a {
    color: #fff;
}

/* --- BACK TO BLOG --- */
.article-back {
    text-align: center;
    padding: 0 20px 60px;
}
.article-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}
.article-back a:hover {
    color: #1a5276;
}

/* --- SOURCE BADGE --- */
.source-badge {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #eee;
}
.source-badge a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
}
.source-badge a:hover {
    color: #2980b9;
}

/* --- RESPONSIVE ARTICLE --- */
@media (max-width: 768px) {
    .article-title { font-size: 26px; }
    .article-excerpt { font-size: 16px; }
    .article-content h2 { font-size: 22px; }
}
