/* Reset et variables */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #f1f5f9;
    --accent: #10b981;
    --accent-light: #34d399;
    --text: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Source Sans Pro', sans-serif;
    
    --container-max: 1200px;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

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

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

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

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.main-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand a {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text);
    padding: 12px 0;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

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

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

/* Header band pour index.html (archétype D) */
.home-header-band {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 48px 0;
    margin-bottom: 0;
}

.home-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: left;
}

.home-baseline {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
    text-align: left;
}

/* Contenu principal home */
.home-main {
    padding: 64px 0;
}

.home-content-area {
    margin-bottom: 64px;
}

.home-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: start;
}

.home-thumbnail {
    position: sticky;
    top: 120px;
}

.home-featured-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.home-text {
    font-size: 18px;
    line-height: 1.8;
}

.home-text p {
    margin-bottom: 24px;
}

.home-text h2 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 16px 0;
}

/* Showcase section */
.home-showcase {
    border-top: 1px solid var(--gray-200);
    padding-top: 64px;
}

.showcase-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 32px;
    text-align: center;
}

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

/* Headers pages */
.page-header {
    background: var(--gray-50);
    padding: 32px 0;
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-align: left;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb::before {
    content: '›';
    margin: 0 8px;
    color: var(--gray-300);
}

/* Main content */
.main-content {
    padding: 48px 0 64px 0;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

/* Post cards */
.post-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.post-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.post-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    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: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.post-category {
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.category-link {
    color: inherit !important;
}

.post-date {
    font-size: 14px;
    color: var(--text-light);
}

.post-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article single */
.post-article {
    margin-bottom: 64px;
}

.post-header {
    background: var(--gray-50);
    padding: 32px 0 48px 0;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.post-category-single {
    background: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-date-single {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
}

.post-title-single {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    text-align: left;
}

.post-featured-image {
    margin-bottom: 48px;
}

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

.post-content-wrapper {
    padding: 0 0 48px 0;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2 {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 24px 0;
    line-height: 1.3;
}

.post-content h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin: 36px 0 18px 0;
}

.post-content ul, 
.post-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 24px 32px;
    margin: 32px 0;
    background: var(--gray-50);
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Author */
.post-author {
    max-width: 800px;
    margin: 32px auto 0 auto;
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

/* Related posts */
.related-posts {
    background: var(--gray-50);
    padding: 64px 0;
}

.related-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 32px;
    text-align: center;
}

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

/* Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination-link {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--text);
    font-weight: 600;
    transition: all 0.2s ease;
}

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

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

/* Footer */
.site-footer {
    background: var(--text);
    color: var(--white);
    padding: 48px 0 32px 0;
    margin-top: auto;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-info h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-info p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-legal {
    text-align: right;
}

.footer-legal p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-legal a {
    color: var(--white);
    text-decoration: underline;
}

.footer-legal a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 24px;
    }
    
    .nav-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle-active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .nav-toggle-active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle-active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
    
    .home-title {
        font-size: 32px;
    }
    
    .home-baseline {
        font-size: 16px;
    }
    
    .home-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .home-thumbnail {
        order: -1;
        position: static;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .post-title-single {
        font-size: 32px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-legal {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 12px 16px;
    }
    
    .home-header-band {
        padding: 32px 0;
    }
    
    .home-title {
        font-size: 28px;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .pagination-nav {
        gap: 4px;
    }
    
    .pagination-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}
