
/* 
Theme: AI / Modern Theme
Font: Inter (Sans-Serif)
Language: French
Tone: Informative & Straightforward
*/

/* --- CSS Variables --- */
:root {
    --bg-main: #0a0a1a; /* Very dark blue, almost black */
    --bg-secondary: #1a1a3a; /* Darker purple-blue */
    --bg-card: #1f1f4a; /* Card background */
    --primary-accent: #00f5c3; /* Bright cyan/mint accent */
    --secondary-accent: #8a2be2; /* Blue-violet */
    --text-main: #e0e0e0; /* Light grey for body text */
    --text-headings: #ffffff; /* Pure white for headings */
    --text-link: #00f5c3;
    --border-color: #3a3a5a;
    --font-main: 'Inter', sans-serif;
    --shadow: 0 4px 15px rgba(0, 245, 195, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--text-headings);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

p {
    margin-bottom: 1rem;
}

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

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

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-headings);
}

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

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-accent);
    border-bottom-color: var(--primary-accent);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-main));
}
.hero h1 {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Blog Articles Grid (Homepage) --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--primary-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

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

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

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

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

.card-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-headings);
}

.card-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    background-color: var(--primary-accent);
    color: var(--bg-main);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #fff;
    text-decoration: none;
}

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

.sidebar-widget h3 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-accent);
    margin-bottom: 1rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
}

.sidebar-widget ul li a::before {
    content: '→';
    margin-right: 0.5rem;
    color: var(--primary-accent);
}

.promo-text p {
    font-style: italic;
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-accent);
}

/* --- Article Page --- */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    margin-top: 1rem;
    color: #aaa;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2, .article-content h3 {
    margin-top: 2.5rem;
}

.article-content .cta {
    background-color: var(--bg-secondary);
    border-left: 5px solid var(--primary-accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

/* --- Simple Page Content --- */
.simple-page {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    min-height: 50vh;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-secondary);
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .main-layout {
        grid-template-columns: 2fr 1fr;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    h1 { font-size: 3rem; }
}

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