/* Reset et variables CSS */
:root {
    --primary-blue: #0066CC;
    --secondary-blue: #003D7A;
    --accent-cyan: #00B4D8;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFB;
    --border-light: #E5E7EB;
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
    
    --container-max: 1200px;
    --grid-gap: 2rem;
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-blue);
}

/* Header et Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

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

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

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 16px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 4rem 0 6rem;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Intro Section */
.intro-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.intro-content {
    font-size: 1.125rem;
    line-height: 1.7;
}

.intro-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

/* Showcase Section */
.showcase-section {
    padding: 4rem 0;
}

.showcase-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-blue);
}

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

/* Post Cards */
.post-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-category-link {
    background: var(--accent-cyan);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-date {
    color: var(--text-gray);
    font-weight: 500;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.card-title-link {
    color: var(--text-dark);
}

.card-title-link:hover {
    color: var(--primary-blue);
}

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

.post-card-footer {
    margin-top: auto;
}

.read-more-link {
    font-weight: 600;
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-link::after {
    content: '→';
    transition: var(--transition);
}

.read-more-link:hover::after {
    transform: translateX(3px);
}

/* Article Page */
.post-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

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

.post-category-link {
    background: var(--accent-cyan);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.post-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
}

.post-reading-time {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-featured-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content {
    margin-top: 3rem;
}

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

.post-body h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--secondary-blue);
}

.post-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary-blue);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    margin: 2rem auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.post-author {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-cyan);
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--bg-light);
}

.related-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.related-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-blue);
}

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

/* Post List */
.post-list-header {
    text-align: center;
    padding: 2rem 1.5rem;
}

.list-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-blue);
}

.post-list-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--grid-gap);
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    padding: 3rem 1.5rem;
}

.pagination-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    color: var(--primary-blue);
    font-weight: 500;
    transition: var(--transition);
}

.pagination-link:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

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

/* Footer */
.site-footer {
    background: var(--secondary-blue);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-copyright {
    text-align: center;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .showcase-grid,
    .related-grid,
    .post-list-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .post-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: auto 1fr;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-top: 1px solid var(--border-light);
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-hero-img {
        height: 250px;
    }
    
    .post-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .nav-brand img {
        height: 48px;
    }
    
    .hero-section {
        padding: 2rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .showcase-grid,
    .related-grid,
    .post-list-grid {
        grid-template-columns: 1fr;
    }
    
    .post-article {
        padding: 1rem 1rem 2rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
}
