
/* === Thème DarkNova | Blog risij.uk === */

/* --- Variables et Réinitialisation --- */
:root {
    --primary-color: #32E8E8; /* Cyan vibrant pour l'accentuation */
    --background-color: #1a1a2e; /* Bleu nuit profond */
    --card-background-color: #16213e; /* Bleu marine légèrement plus clair */
    --header-footer-bg: #0f3460; /* Bleu plus sombre pour l'en-tête/pied de page */
    --text-color: #e0e0e0; /* Gris clair pour le texte */
    --heading-color: #FFFFFF; /* Blanc pur pour les titres */
    --border-color: #2a3b5c;
    --hover-color: #00c4c4;
    --font-family-headings: 'Roboto Slab', serif;
    --font-family-body: 'Lato', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Importation des polices Google */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&family=Lato:wght@400;700&display=swap');

/* Réinitialisation de base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

/* --- Classes Utilitaires --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- En-tête & Navigation --- */
.site-header {
    background-color: var(--header-footer-bg);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
}

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

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

.logo a:hover {
    color: var(--primary-color);
}

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

.main-nav a {
    font-weight: 700;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--primary-color);
}

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

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

/* --- Mise en Page Principale --- */
.main-content-area {
    padding: 2.5rem 0;
}

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

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

/* --- Section Hero (Page d'accueil) --- */
.hero {
    background: linear-gradient(135deg, var(--card-background-color), var(--header-footer-bg));
    padding: 3rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    color: var(--primary-color);
}

/* --- Grille d'Articles --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.articles-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

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

@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-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

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

.article-card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

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

/* --- Barre Latérale --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--card-background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--heading-color);
}

.widget ul {
    list-style: none;
}

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

.widget ul li a {
    font-weight: 700;
}

.widget p {
    margin-bottom: 0;
}

/* --- Pied de Page --- */
.site-footer {
    background-color: var(--header-footer-bg);
    color: var(--text-color);
    padding: 2.5rem 0;
    margin-top: 2.5rem;
    border-top: 2px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

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

.footer-widget h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-family: var(--font-family-headings);
}

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

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--text-color);
}

.footer-widget a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- Spécificités de la Page d'Article --- */
.article-full {
    background-color: var(--card-background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.article-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.9rem;
}

.article-meta span {
    margin-right: 1rem;
}

.article-content h2 {
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.article-content h3 {
    margin-top: 1.5rem;
    color: var(--primary-color);
}

.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
}

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

.cta-section h3 {
    color: var(--heading-color);
}

/* --- Sous-pages (À Propos, Contact) --- */
.page-content {
    background-color: var(--card-background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.page-content h1 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}
