/* ---
Website: Le Catalogue de la Semaine
Language: French
Theme: Nature Inspired
Font: Inter
Tone: Friendly & Casual
--- */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-color: #F8F5F2; /* Soft Cream */
    --surface-color: #FFFFFF;
    --primary-color: #2E7D32; /* Earthy Green */
    --primary-hover-color: #1B5E20;
    --text-color: #424242; /* Dark Gray */
    --text-muted-color: #757575; /* Medium Gray */
    --border-color: #E0E0E0;
    --accent-color: #8D6E63; /* Soft Brown */
    --shadow-color: rgba(0, 0, 0, 0.07);
    --font-family: 'Inter', sans-serif;
    --border-radius: 12px;
}

/* --- General Reset & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.6rem; text-align: center; color: var(--primary-color); }
h2 {
    font-size: 2.1rem;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    color: var(--text-color);
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}
h3 { font-size: 1.5rem; font-weight: 600; margin-top: 1.8rem; color: var(--accent-color); }
p { margin-bottom: 1rem; }

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

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

ul, ol {
    padding-left: 20px;
    margin-bottom: 1.2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* --- Layout & Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 992px) {
    .main-layout {
        grid-template-columns: 3fr 1fr;
    }
}

/* --- Header --- */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
}

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

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* --- Main Content --- */
main {
    padding: 30px 0;
}

.intro-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.intro-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-section p {
    font-size: 1.2rem;
    color: var(--text-muted-color);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Blog Articles Section --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}

.article-card-content p {
    color: var(--text-muted-color);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    align-self: flex-start;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    background-color: var(--primary-hover-color);
    text-decoration: none;
    transform: scale(1.05);
}

/* --- Sidebar --- */
.sidebar {
    padding: 25px;
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    align-self: start;
    border: 1px solid var(--border-color);
}

.widget {
    margin-bottom: 30px;
}
.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    color: var(--accent-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 10px;
}

.widget li a::before {
    content: '🌿';
    margin-right: 8px;
}

.widget li a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

.site-footer a {
    color: #fff;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.9rem;
    color: var(--bg-color);
}

/* --- Article Page Specifics --- */
.article-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    font-style: italic;
}
.article-meta span {
    margin: 0 10px;
}

.article-content {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section {
    background-color: var(--surface-color);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 2.5rem 0;
    text-align: center;
}

.cta-section h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
    transform: scale(1.05);
    text-decoration: none;
}

/* --- Contact Page --- */
.contact-info {
    list-style: none;
    padding: 0;
}
.contact-info li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.contact-info strong {
    color: var(--accent-color);
}

/* --- Responsive Menu --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }
    h1 { font-size: 2.2rem; }
    .article-header h1 { font-size: 2.4rem; }
    .intro-section h1 { font-size: 2.6rem; }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
