/* Reset et base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2F2F2F;
    background-color: #FEFEFE;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: #6B5B73;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8B4513;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
.site-header {
    background-color: #FEFEFE;
    border-bottom: 1px solid #E5E5E5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.nav-brand img {
    height: 72px;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: #2F2F2F;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 600;
    color: #2F2F2F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #8B4513;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #F8F6F0 0%, #E8E2D5 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    color: #2F2F2F;
    margin-bottom: 1.5rem;
}

.hero-baseline {
    font-size: 1.25rem;
    color: #6B5B73;
    font-weight: 300;
    font-style: italic;
}

.hero-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Sections */
.intro-section {
    padding: 5rem 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.featured-section {
    padding: 4rem 0;
    background-color: #F8F6F0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #2F2F2F;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8B4513;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Post Cards */
.post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.post-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

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

.post-card__content {
    padding: 1.5rem;
}

.post-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-category {
    background-color: #8B4513;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    font-size: 0.85rem;
    color: #6B5B73;
}

.post-card__title a {
    color: #2F2F2F;
    font-size: 1.25rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 1rem;
}

.post-card__excerpt {
    color: #6B5B73;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #8B4513;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Article Page */
.article-header {
    padding: 2rem 0;
    background-color: #F8F6F0;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb-nav a {
    color: #6B5B73;
    font-size: 0.9rem;
}

.article-meta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    margin-bottom: 1rem;
}

.category-link {
    background-color: #8B4513;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.article-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.article-date {
    color: #6B5B73;
    font-style: italic;
}

.article-thumbnail {
    margin: 2rem 0;
}

.article-featured-image {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 12px;
}

.article-content {
    padding: 3rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-wrapper h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #2F2F2F;
}

.content-wrapper h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-author {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background-color: #F8F6F0;
    border-radius: 12px;
    text-align: center;
}

.related-articles {
    padding: 4rem 0;
    background-color: #F8F6F0;
}

/* Listing Page */
.listing-header {
    padding: 3rem 0;
    text-align: center;
}

.posts-listing {
    padding: 2rem 0;
}

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 0.75rem 1rem;
    background-color: white;
    color: #6B5B73;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link--current {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

/* Footer */
.site-footer {
    background-color: #2F2F2F;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-copyright {
    margin: 0;
    color: #D2B48C;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: auto 1fr;
    }
    
    .nav-toggle {
        display: flex;
        justify-self: end;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    .nav-menu--open {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid #E5E5E5;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-brand img {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .post-card__content {
        padding: 1rem;
    }
}
