/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #2C2C2C;
    background-color: #FEFEFE;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === COULEURS === */
:root {
    --primary: #2C5F2D;
    --secondary: #97BC62;
    --accent: #E8B86D;
    --text: #2C2C2C;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

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

/* === NAVIGATION === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, #1e4a20 100%);
    box-shadow: 0 4px 20px var(--shadow);
}

.navigation {
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    gap: 2rem;
}

.nav-brand {
    flex-shrink: 0;
}

.logo-link {
    display: block;
}

.site-logo {
    height: 72px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

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

.nav-toggle-line {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    flex: 1;
    justify-content: center;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
    text-decoration: none;
    transform: translateY(-2px);
}

/* === MAIN CONTENT === */
.main-content {
    min-height: 70vh;
}

/* === HOMEPAGE JOURNAL STYLE === */
.journal-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 3rem 2rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.journal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(255, 255, 255, 0.1) 100px
    );
    pointer-events: none;
}

.journal-banner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 2;
}

.journal-title {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.journal-baseline {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
}

.homepage-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    gap: 5rem;
}

.editorial-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.homepage-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px var(--shadow);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.content-thumbnail {
    margin: 0;
}

.homepage-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow);
}

.content-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.articles-showcase {
    background: var(--bg-light);
    padding: 4rem;
    border-radius: 25px;
    border: 1px solid var(--border);
}

.showcase-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
}

.showcase-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* === POST CARDS === */
.post-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    height: fit-content;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.post-card:hover .card-image {
    transform: scale(1.1);
}

.post-card-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-date {
    color: var(--text-light);
    font-weight: 500;
}

.post-category {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.post-category:hover {
    text-decoration: none;
    transform: scale(1.05);
}

.post-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.post-title a {
    color: var(--primary);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--secondary);
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.read-more:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
    text-decoration: none;
    color: var(--white);
}

/* === PAGE LAYOUTS === */
.page-hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    color: var(--primary);
    margin-bottom: 0;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.posts-listing {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* === POST DETAIL === */
.breadcrumb-wrapper {
    background: var(--bg-light);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

.post-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-category-link {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
}

.post-category-link:hover {
    text-decoration: none;
    transform: scale(1.05);
    color: var(--white);
}

.post-title {
    margin-bottom: 0;
    text-align: center;
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow);
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 4rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    background: var(--bg-light);
    border-left: 5px solid var(--accent);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-author {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 4rem;
}

.related-posts {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.related-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

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

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-link:hover {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    text-decoration: none;
}

.pagination-current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1e4a20 100%);
    color: var(--white);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-text p {
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .site-logo {
        height: 60px;
    }
    
    .homepage-content {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .content-thumbnail {
        order: -1;
    }
    
    .homepage-image {
        height: 200px;
    }
    
    .articles-showcase {
        padding: 2rem;
    }
    
    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-meta-top {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px var(--shadow);
    }
    
    .nav-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .nav-toggle-active .nav-toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle-active .nav-toggle-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle-active .nav-toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .journal-header {
        padding: 2rem 1rem;
    }
    
    .journal-title {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: -1px;
    }
    
    .journal-baseline {
        font-size: 1rem;
    }
    
    .homepage-layout {
        padding: 2rem 1rem;
        gap: 3rem;
    }
    
    .homepage-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .articles-showcase {
        padding: 1.5rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .content-container {
        padding: 2rem 1rem;
    }
    
    .post-article {
        padding: 2rem 1rem;
    }
    
    .related-posts {
        padding: 2rem 1rem;
    }
    
    .breadcrumb-wrapper {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 48px;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .post-card-content {
        padding: 1rem;
    }
    
    .post-card-image {
        height: 180px;
    }
    
    .homepage-image {
        height: 150px;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .pagination-link {
        min-width: 40px;
        height: 40px;
        padding: 0.5rem 0.75rem;
    }
}
