/* === SimplePress Theme | Risij.uk Blog === */
/* Language: French */

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

/* --- CSS Variables --- */
:root {
    --background-color: #F8F9FA; /* Off-white */
    --text-color: #212529; /* Almost black */
    --text-color-light: #495057;
    --primary-accent-color: #52796F; /* Muted Green */
    --card-background-color: #FFFFFF;
    --border-color: #DEE2E6;
    --link-hover-color: #354F48;
    --font-primary: 'Montserrat', sans-serif;
    --container-width: 1140px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

/* --- Global & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color-light);
    line-height: 1.7;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 25px;
}

ul li::before {
    content: '•';
    color: var(--primary-accent-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* --- Header --- */
.site-header {
    background-color: var(--card-background-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}
.site-title a {
    text-decoration: none;
    color: inherit;
}
.site-title a:hover {
    color: var(--primary-accent-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu li::before { content: ''; }
.nav-menu li { padding-left: 0; margin-bottom: 0; }

.nav-menu a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    position: relative;
    text-decoration: none;
}

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

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

/* --- Main Layout --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
}

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

/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
}

.hero h1 {
    color: var(--text-color);
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color-light);
}

/* --- Articles Grid (Homepage) --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .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(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.card-content h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.card-content h3 a:hover {
    color: var(--primary-accent-color);
    text-decoration: underline;
}

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

.read-more-btn {
    display: inline-block;
    color: var(--primary-accent-color);
    text-align: center;
    transition: color 0.3s ease;
    align-self: flex-start;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
}
.read-more-btn:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* --- Sidebar --- */
.sidebar .widget {
    background-color: var(--card-background-color);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-accent-color);
    margin-bottom: 1.5rem;
}

.widget.widget-promo {
    background-color: var(--primary-accent-color);
    color: #FFFFFF;
    text-align: center;
    border: none;
}
.widget.widget-promo .widget-title {
    color: #FFFFFF;
    border-bottom-color: rgba(255,255,255,0.5);
}
.widget.widget-promo p {
    color: #FFFFFF;
    font-weight: 400;
}
.widget.widget-promo a {
    color: #FFFFFF;
    text-decoration: underline;
}
.widget.widget-promo a:hover {
    color: #f0f0f0;
}

/* --- Single Article & Sub-Pages --- */
.article-content, .subpage-content {
    background-color: var(--card-background-color);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.article-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.article-header h1 {
    font-size: 2.75rem;
}

.article-meta {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.article-meta a {
    color: #6c757d;
    font-weight: 400;
}
.article-meta a:hover {
    color: var(--primary-accent-color);
}

.cta-section {
    background-color: #e9ecef;
    text-align: center;
    padding: 2.5rem;
    margin: 2.5rem 0;
    border-radius: var(--border-radius);
}
.cta-section h2 {
    margin-top: 0;
}
.cta-section .read-more-btn {
    display: inline-block;
    background-color: var(--primary-accent-color);
    color: #FFFFFF;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}
.cta-section .read-more-btn:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
    color: #FFFFFF;
    text-decoration: none;
}

/* --- Contact Form --- */
.contact-form {
    margin-top: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: #FFFFFF;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent-color);
    box-shadow: 0 0 0 3px rgba(82, 121, 111, 0.2);
}

.contact-form button {
    display: inline-block;
    background-color: var(--primary-accent-color);
    color: #FFFFFF;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-form button:hover {
    background-color: var(--link-hover-color);
    transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
    background-color: #343A40;
    padding: 2.5rem 0;
    margin-top: 3rem;
    color: #adb5bd;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links li::before, .footer-links li {
    content: '';
    padding-left: 0;
    margin-bottom: 0;
}
.footer-links a {
    color: #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}
.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    margin: 0;
}

/* --- Mobile Menu --- */
@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .article-header h1 { font-size: 2.25rem; }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        width: 100%;
    }
    .main-layout {
        padding: 1.5rem 0;
    }
    .article-content, .subpage-content {
        padding: 1.5rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
