/*
Theme Name: Libr-Critique Archive
Theme URI: https://t-pas-net.com/libr-critique
Description: Thème archive pour Libr-critique (2004-2021) — design magazine moderne
Author: Libr-critique
Version: 1.0
*/

/* ========================================
   RESET & BASE
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2a2a2a;
    background: #f5f3f0;
}

a {
    color: #c0392b;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e74c3c;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: relative;
    background: url('img/back.jpg') center center / cover no-repeat;
    padding: 60px 0 50px;
    text-align: center;
    overflow: hidden;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,15,20,0.75) 0%, rgba(40,20,20,0.65) 100%);
    z-index: 1;
}

.site-header .header-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.site-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: #e74c3c;
}

.site-description {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #e74c3c;
    text-transform: uppercase;
    margin-top: 8px;
}

.archive-badge {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(231, 76, 60, 0.85);
    padding: 5px 16px;
    margin-top: 18px;
    border-radius: 2px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-nav {
    background: #1a1a1a;
    border-bottom: 3px solid #c0392b;
}

.site-nav ul {
    list-style: none;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ccc;
    padding: 14px 18px;
    transition: all 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
    color: #fff;
    background: #c0392b;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.site-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 30px;
}

.page-heading {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ddd;
}

/* ========================================
   ARTICLE GRID
   ======================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.post-card .post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #ddd;
}

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

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

.post-card .post-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2c2c2c 0%, #444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card .post-thumbnail-placeholder span {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.post-card .post-inner {
    padding: 22px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-date {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c0392b;
    margin-bottom: 8px;
}

.post-card .post-title {
    font-family: 'Jost', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.post-card .post-title a {
    color: #1a1a1a;
}

.post-card .post-title a:hover {
    color: #c0392b;
}

.post-card .post-excerpt {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    flex: 1;
    margin-bottom: 15px;
}

.post-card .post-meta {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.5px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.post-card .post-meta a {
    color: #888;
}

.post-card .post-meta a:hover {
    color: #c0392b;
}

/* ========================================
   SINGLE POST
   ======================================== */
.single-post-content {
    max-width: 750px;
    margin: 0 auto;
}

.single-post-content .entry-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.single-post-content .entry-title {
    font-family: 'Jost', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.single-post-content .entry-meta {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
}

.single-post-content .entry-meta a {
    color: #c0392b;
}

.single-post-content .entry-content {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    line-height: 1.85;
    color: #333;
}

.single-post-content .entry-content p {
    margin-bottom: 1.5em;
}

.single-post-content .entry-content img {
    margin: 1.5em 0;
    border-radius: 3px;
}

.single-post-content .entry-content blockquote {
    border-left: 4px solid #c0392b;
    padding: 10px 25px;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
    background: #fafafa;
}

.single-post-content .entry-content h2,
.single-post-content .entry-content h3 {
    font-family: 'Jost', sans-serif;
    margin: 1.8em 0 0.8em;
    color: #1a1a1a;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    text-align: center;
    margin: 50px 0 30px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

.pagination a,
.pagination span {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    margin: 0 3px;
    color: #666;
    background: #fff;
    border-radius: 3px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #c0392b;
    color: #fff;
}

.pagination .current {
    background: #c0392b;
    color: #fff;
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area {
    max-width: 750px;
    margin: 40px auto;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comments-area h3 {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.comment-meta {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: #1a1a1a;
    color: #888;
    padding: 40px 30px;
    text-align: center;
    margin-top: 50px;
}

.site-footer p {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-footer a {
    color: #e74c3c;
}

/* ========================================
   SEARCH & 404
   ======================================== */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
}

.search-form input[type="text"],
.search-form input[type="search"] {
    flex: 1;
    font-family: 'Lora', serif;
    font-size: 15px;
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 3px 0 0 3px;
    outline: none;
}

.search-form input[type="submit"] {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 24px;
    background: #c0392b;
    color: #fff;
    border: 2px solid #c0392b;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form input[type="submit"]:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .site-title {
        font-size: 40px;
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-title {
        font-size: 30px;
        letter-spacing: 1px;
    }

    .site-description {
        font-size: 13px;
    }

    .site-header {
        padding: 40px 0 35px;
    }

    .site-nav ul {
        flex-direction: column;
    }

    .site-nav a {
        padding: 10px 18px;
        border-bottom: 1px solid #333;
    }

    .single-post-content .entry-title {
        font-size: 24px;
    }

    .single-post-content .entry-content {
        font-size: 15px;
    }

    .post-card .post-title {
        font-size: 15px;
    }
}
