/* Reset et base - Compatible avec votre Tailwind */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.5;
    color: #111827; /* text-gray-900 */
    background-color: #f9fafb; /* bg-gray-50 */
}

.container {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1.5rem; /* px-6 */
}

/* Header - Style cohérent avec votre site */
.header {
    background: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e5e7eb; /* border-gray-200 */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0; /* py-4 */
}

.logo {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
    text-decoration: none;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* transition-colors */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 2.5rem; /* h-10 */
    width: auto;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.logo:hover {
    color: #16a34a; /* text-green-600 */
}

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

.logo:hover .logo-text {
    color: #16a34a;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem; /* space-x-8 */
}

.nav-menu a {
    text-decoration: none;
    color: #6b7280; /* text-gray-500 */
    font-weight: 500; /* font-medium */
    font-size: 1rem; /* text-base */
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* transition-colors */
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #16a34a; /* text-green-600 */
}

/* Main */
.main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0; /* py-12 */
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem; /* mb-16 */
    padding: 5rem 0; /* py-20 */
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); /* from-green-50 to-green-100 */
    border-radius: 1rem; /* rounded-2xl */
    margin: 2rem 1rem 4rem;
}

.blog-header h1 {
    font-size: 3.75rem; /* text-6xl */
    color: #111827; /* text-gray-900 */
    margin-bottom: 1rem; /* mb-4 */
    font-weight: 700; /* font-bold */
    background: linear-gradient(135deg, #111827 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.25rem; /* text-xl */
    color: #6b7280; /* text-gray-500 */
    max-width: 42rem; /* max-w-2xl */
    margin: 0 auto;
    font-weight: 300; /* font-light */
}

/* Featured Post */
.featured-post {
    margin-bottom: 4rem; /* mb-16 */
}

.post-card {
    background: white;
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb; /* border-gray-200 */
}

.post-card:hover {
    transform: translateY(-0.25rem); /* hover:-translate-y-1 */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* shadow-xl */
    border-color: #d1d5db; /* border-gray-300 */
}

.featured {
    display: grid;
    grid-template-columns: 1fr 1fr; /* grid-cols-2 */
    align-items: center;
    min-height: 400px;
}
.post-image { width: auto; height: auto; max-width: 100%; object-fit: contain; }
.featured .post-image { height: auto; }

.post-content {
    padding: 2rem; /* p-8 */
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); /* from-green-100 to-green-200 */
    color: #166534; /* text-green-800 */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    border-radius: 9999px; /* rounded-full */
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* font-semibold */
    margin-bottom: 1rem; /* mb-4 */
    text-transform: uppercase;
    letter-spacing: 0.025em; /* tracking-wide */
}

.post-card h2,
.post-card h3 {
    margin-bottom: 1rem; /* mb-4 */
    line-height: 1.25; /* leading-tight */
    color: #111827; /* text-gray-900 */
}

.post-card h2 {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
}

.post-card h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
}

.post-card a {
    color: #111827; /* text-gray-900 */
    text-decoration: none;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* transition-colors */
}

.post-card a:hover {
    color: #16a34a; /* text-green-600 */
}

.post-excerpt {
    color: #6b7280; /* text-gray-500 */
    margin-bottom: 1.5rem; /* mb-6 */
    font-size: 1rem; /* text-base */
    line-height: 1.625; /* leading-relaxed */
}

.post-meta {
    display: flex;
    gap: 1rem; /* space-x-4 */
    color: #9ca3af; /* text-gray-400 */
    font-size: 0.875rem; /* text-sm */
}

/* Posts Grid */
.posts-grid {
    margin-bottom: 4rem; /* mb-16 */
}

.posts-grid h2 {
    font-size: 3rem; /* text-5xl */
    margin-bottom: 3rem; /* mb-12 */
    color: #111827; /* text-gray-900 */
    font-weight: 700; /* font-bold */
    text-align: center;
}

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

.grid .post-card {
    display: flex;
    flex-direction: column;
}

.grid .post-image {
    height: 12rem; /* h-48 */
}

.grid .post-content {
    flex: 1;
    padding: 1.5rem; /* p-6 */
}

/* Categories */
.categories h2 {
    font-size: 3rem; /* text-5xl */
    margin-bottom: 3rem; /* mb-12 */
    color: #111827; /* text-gray-900 */
    text-align: center;
    font-weight: 700; /* font-bold */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; /* gap-8 */
    margin-bottom: 2rem; /* mb-8 */
}

.category-card {
    background: white;
    padding: 2rem; /* p-8 */
    border-radius: 1rem; /* rounded-2xl */
    text-align: center;
    text-decoration: none;
    color: #374151; /* text-gray-700 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); /* shadow-md */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-0.25rem) scale(1.05); /* hover:-translate-y-1 hover:scale-105 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
    color: #374151; /* text-gray-700 */
    border-color: #16a34a; /* border-green-600 */
}

.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem; /* mb-4 */
}

.category-card h3 {
    margin-bottom: 0.5rem; /* mb-2 */
    color: #16a34a; /* text-green-600 */
    font-weight: 600; /* font-semibold */
    font-size: 1.25rem; /* text-xl */
}

.category-card p {
    color: #6b7280; /* text-gray-500 */
    font-size: 0.875rem; /* text-sm */
}

/* Footer - Style cohérent avec votre site */
.footer {
    background: linear-gradient(135deg, #111827 0%, #374151 100%); /* from-gray-900 to-gray-700 */
    color: #e5e7eb; /* text-gray-200 */
    padding: 3rem 0; /* py-12 */
    margin-top: 4rem; /* mt-16 */
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem; /* space-x-8 */
}

.footer-links a {
    color: #d1d5db; /* text-gray-300 */
    text-decoration: none;
    transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* transition-colors */
    font-weight: 500; /* font-medium */
}

.footer-links a:hover {
    color: #22c55e; /* text-green-400 */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem; /* px-4 */
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .blog-header {
        padding: 3rem 1rem; /* py-12 px-4 */
        margin: 1rem 0.5rem 3rem;
    }
    
    .blog-header h1 {
        font-size: 2.25rem; /* text-4xl */
    }
    
    .blog-subtitle {
        font-size: 1.125rem; /* text-lg */
    }
    
    .featured {
        grid-template-columns: 1fr; /* grid-cols-1 */
    }
    
    .grid {
        grid-template-columns: 1fr; /* grid-cols-1 */
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr; /* grid-cols-1 */
    }
    
    .posts-grid h2,
    .categories h2 {
        font-size: 2.25rem; /* text-4xl */
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-content {
        padding: 1.5rem; /* p-6 */
    }
    
    .category-card {
        padding: 1.5rem; /* p-6 */
    }
    
    .blog-header h1 {
        font-size: 1.875rem; /* text-3xl */
    }
}

/* Scrollbar personnalisée - cohérente avec votre site */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* bg-slate-100 */
}

::-webkit-scrollbar-thumb {
    background: #16a34a; /* bg-green-600 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15803d; /* bg-green-700 */
}

/* Animations subtiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.post-card:nth-child(3) {
    animation-delay: 0.2s;
}

.post-card:nth-child(4) {
    animation-delay: 0.3s;
}