/* =====================================================
   Blog Dentagram
   ===================================================== */

.blog-hero {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: #fff;
    padding: 90px 0 70px;
    text-align: center;
}

.blog-hero h1 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 14px;
}

.blog-hero p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.92;
}

.blog-section {
    padding: 70px 0 90px;
    background: #F9FAFB;
}

/* Grille des articles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(17, 24, 39, 0.06);
    border: 1px solid #EEF0F4;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.16);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.blog-card-image .placeholder-icon {
    font-size: 3rem;
    color: #7C3AED;
    opacity: 0.55;
}

.blog-card-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7C3AED;
    background: #f3effe;
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.blog-card-body h2 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.3rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px;
}

.blog-card-excerpt {
    color: #6B7280;
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: #9CA3AF;
}

.blog-card-meta .read-more {
    margin-left: auto;
    color: #7C3AED;
    font-weight: 600;
}

/* État vide */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #9CA3AF;
}

.blog-empty i {
    font-size: 3.5rem;
    margin-bottom: 18px;
    opacity: 0.5;
}

/* =====================================================
   Article unique
   ===================================================== */

.post-hero {
    background: #fff;
    padding: 70px 0 30px;
}

.post-hero .container {
    max-width: 820px;
}

.post-breadcrumb {
    font-size: 0.9rem;
    color: #9CA3AF;
    margin-bottom: 22px;
}

.post-breadcrumb a {
    color: #7C3AED;
    text-decoration: none;
}

.post-category {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7C3AED;
    background: #f3effe;
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.post-hero h1 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.2;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 20px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: #6B7280;
    font-size: 0.95rem;
    padding-bottom: 30px;
    border-bottom: 1px solid #EEF0F4;
}

.post-meta i {
    color: #7C3AED;
    margin-right: 6px;
}

.post-cover {
    max-width: 980px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.post-cover img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.post-body {
    background: #fff;
    padding: 50px 0 80px;
}

.post-body .container {
    max-width: 760px;
}

.post-content {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1F2937;
    margin: 44px 0 16px;
}

.post-content h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: #1F2937;
    margin: 32px 0 12px;
}

.post-content p {
    margin: 0 0 22px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px;
    padding-left: 26px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content a {
    color: #7C3AED;
    text-decoration: underline;
}

.post-content blockquote {
    border-left: 4px solid #7C3AED;
    background: #f9f7ff;
    margin: 28px 0;
    padding: 18px 24px;
    border-radius: 0 10px 10px 0;
    color: #4B5563;
    font-style: italic;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.92em;
    color: #5B21B6;
}

.post-content pre {
    background: #1F2937;
    color: #f3f4f6;
    padding: 18px 22px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 0 0 24px;
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 10px 0 24px;
}

.post-content .tip-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 26px;
}

.post-content .warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 0 0 26px;
}

/* Pied d'article */
.post-footer {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 30px 24px 0;
    border-top: 1px solid #EEF0F4;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7C3AED;
    font-weight: 600;
    text-decoration: none;
}

/* CTA bas d'article */
.post-cta {
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    color: #fff;
    max-width: 760px;
    margin: 50px auto 0;
}

.post-cta h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 12px;
    color: #fff;
}

.post-cta p {
    opacity: 0.92;
    margin: 0 0 22px;
}

@media (max-width: 640px) {
    .blog-section { padding: 50px 0 70px; }
    .post-content { font-size: 1.05rem; }
}
