/* ============================================
   BLOG CREAMOD3D — Tests Imprimantes 3D
   Couleurs : accent #b1c33c | dark #383736
   ============================================ */

/* ---- LISTE DES ARTICLES (page blog) ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-lg, 1rem);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
}

.blog-card .card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.blog-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #fff;
}

.blog-card .card-badge.fdm { background: #b1c33c; }
.blog-card .card-badge.resine { background: #7c5cbf; }
.blog-card .card-badge.laser { background: #e8701a; }

.blog-card .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-meta {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card h2, .blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #232323;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.blog-card .card-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1rem;
}

.blog-card .card-stars {
    color: #b1c33c;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.blog-card .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #b1c33c;
    text-decoration: none;
    transition: gap 0.2s;
}

.blog-card .card-cta:hover { gap: 10px; color: #9bb130; }
.blog-card .card-cta::after { content: "→"; }

/* ---- FILTRES CATÉGORIES ---- */
.blog-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    border-color: #b1c33c;
    background: #b1c33c;
    color: #fff;
}

/* ---- HERO SECTION BLOG ---- */
.blog-hero {
    background: linear-gradient(135deg, #383736 0%, #2a2928 100%);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg, 1rem);
    margin-bottom: 2.5rem;
}

.blog-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.blog-hero .accent { color: #b1c33c; }

/* ---- ARTICLE INDIVIDUEL ---- */
.blog-post-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.printer-badge {
    padding: 6px 16px;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
}

.printer-badge.fdm { background: #b1c33c; }
.printer-badge.resine { background: #7c5cbf; }
.printer-badge.laser { background: #e8701a; }

.printer-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars { color: #b1c33c; font-size: 1.1rem; }
.rating-text { font-size: 0.9rem; color: #666; font-weight: 500; }

/* ---- FICHE TECHNIQUE ---- */
.printer-specs-card {
    background: linear-gradient(135deg, #383736, #2a2928);
    border-radius: var(--radius-lg, 1rem);
    padding: 2rem;
    margin: 1.5rem 0 2rem;
    color: #fff;
}

.specs-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b1c33c !important;
    margin-bottom: 1.25rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.6rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,.07);
    border-radius: var(--radius-sm, .375rem);
    padding: 0.6rem 0.9rem;
    gap: 0.5rem;
}

.spec-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,.6);
    font-weight: 500;
    white-space: nowrap;
}

.spec-value {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    text-align: right;
}

/* ---- PROS / CONS ---- */
.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (max-width: 640px) {
    .pros-cons-container { grid-template-columns: 1fr; }
}

.pros-block, .cons-block {
    border-radius: var(--radius-md, .5rem);
    padding: 1.5rem;
}

.pros-block { background: #f0f7e0; border-left: 4px solid #b1c33c; }
.cons-block { background: #fff5f5; border-left: 4px solid #e05252; }

.pros-title { color: #7a8f20 !important; font-size: 1rem !important; font-weight: 700; margin-bottom: 1rem; }
.cons-title { color: #c23c3c !important; font-size: 1rem !important; font-weight: 700; margin-bottom: 1rem; }

.pros-list, .cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li, .cons-list li {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.pros-list li:last-child, .cons-list li:last-child { border-bottom: none; }

.pros-list li::before { content: "✓  "; color: #b1c33c; font-weight: 700; }
.cons-list li::before { content: "✗  "; color: #e05252; font-weight: 700; }

/* ---- GALERIE PHOTOS ---- */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item {
    margin: 0;
    border-radius: var(--radius-md, .5rem);
    overflow: hidden;
    background: #f3f4f6;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-item figcaption {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    color: #666;
    background: #fff;
    border-top: 1px solid #eee;
}

/* ---- MODIFICATIONS LIST ---- */
.mods-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 1.5rem 0;
}

.mod-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f9f9f9;
    border-radius: var(--radius-md, .5rem);
    padding: 1rem 1.25rem;
    border: 1px solid #eee;
    transition: border-color 0.2s;
}

.mod-item:hover { border-color: #b1c33c; }

.mod-badge {
    background: #383736;
    color: #b1c33c;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 2rem;
    white-space: nowrap;
    margin-top: 3px;
}

.mod-info strong {
    display: block;
    font-size: 0.95rem;
    color: #232323;
    margin-bottom: 0.3rem;
}

.mod-info p {
    font-size: 0.87rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ---- VERDICT CARD ---- */
.verdict-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #383736, #2a2928);
    border-radius: var(--radius-lg, 1rem);
    padding: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.verdict-score {
    text-align: center;
    flex-shrink: 0;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #b1c33c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 0.5rem;
}

.score-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,.65);
    font-weight: 600;
}

.verdict-breakdown { flex: 1; min-width: 200px; }

.score-row {
    display: grid;
    grid-template-columns: 160px 1fr 50px;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.score-row span:first-child {
    font-size: 0.82rem;
    color: rgba(255,255,255,.75);
}

.score-bar {
    background: rgba(255,255,255,.15);
    border-radius: 2rem;
    height: 8px;
    overflow: hidden;
}

.score-bar div {
    height: 100%;
    background: #b1c33c;
    border-radius: 2rem;
    transition: width 0.8s ease;
}

.score-row span:last-child {
    font-size: 0.82rem;
    color: #b1c33c;
    font-weight: 700;
    text-align: right;
}

/* ---- BREADCRUMB BLOG ---- */
.blog-breadcrumb {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.blog-breadcrumb a { color: #b1c33c; text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb .sep { color: #ccc; }

/* ---- POSTS NAVIGATION ---- */
.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid #eee;
    transition: border-color 0.2s, background 0.2s;
}

.post-nav-link:hover { border-color: #b1c33c; background: #f0f7e0; }

.post-nav-link .nav-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .05em;
}

.post-nav-link .nav-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #232323;
}

.post-nav-link.next { text-align: right; }

/* ---- PAGE TITRE ---- */
.entry-title.blog-page-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #232323;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .specs-grid { grid-template-columns: 1fr; }
    .score-row { grid-template-columns: 120px 1fr 45px; }
    .verdict-card { flex-direction: column; align-items: flex-start; }
    .blog-post-nav { grid-template-columns: 1fr; }
}
