/* ---
Langue: Français
Thème: Nature Inspired
Police: Inter
Ton: Amical & Décontracté
--- */

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

/* --- Variables CSS --- */
:root {
    --bg-color: #f4f1e9;
    --surface-color: #ffffff;
    --primary-color: #4a7c59;
    --secondary-color: #a3b18a;
    --text-color: #344e41;
    --text-muted-color: #588157;
    --border-color: #dad7ce;
    --header-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* --- Réinitialisation générale & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* --- Typographie --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; margin-top: 2rem;}
h3 { font-size: 1.5rem; color: var(--text-muted-color); margin-top: 1.5rem; }
p { margin-bottom: 1rem; }

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

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

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

li {
    margin-bottom: 0.5rem;
}

/* --- Mise en page & Conteneur --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

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

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

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

.site-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 700;
}

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

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

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* --- Contenu principal --- */
main {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.intro-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #e9ede6;
    border-radius: 8px;
    margin-bottom: 30px;
}

.intro-section h1 {
    margin-bottom: 0.5rem;
}

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

/* --- Section des articles de blog --- */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

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

.article-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

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

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

.article-card-content p {
    color: var(--text-color);
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* --- Barre latérale --- */
.sidebar {
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.widget {
    margin-bottom: 30px;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

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

.widget li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.widget li::before {
    content: '🌿';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}


.widget a {
    display: block;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.widget a:hover {
    text-decoration: none;
}

/* --- Pied de page --- */
.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
}

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

.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: 20px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Spécificités de la page d'article --- */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.article-header h1 {
    margin-bottom: 0.5rem;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}
.article-meta span {
    margin-right: 15px;
}

.article-content {
    font-size: 1.1rem;
}

.cta-section {
    background-color: #e9ede6;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 25px;
    margin: 2rem 0;
    text-align: center;
}

.cta-section h3 {
    margin-top: 0;
}

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

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

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

/* --- Menu réactif (pour futur JS) --- */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
}