/* ---
Thème : Tech / Futuriste
Police : Fira Code
Ton : Tech / Futuriste
--- */

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

/* --- Variables CSS --- */
:root {
    --bg-color: #0a0a1a;
    --surface-color: #1a1a2e;
    --primary-color: #00f5d4; /* Neon Teal */
    --secondary-color: #ff00ff; /* Magenta */
    --text-color: #e0e0ff;
    --text-muted-color: #8a8aaf;
    --border-color: #3a3a5e;
    --font-family-main: 'Fira Code', monospace;
    --container-width: 1200px;
    --border-radius: 4px;
    --transition-speed: 0.3s ease;
}

/* --- Réinitialisations Globales & Styles de Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* --- Typographie --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 245, 212, 0.3);
}

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

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed), text-shadow var(--transition-speed);
}

a:hover, a:focus {
    color: #fff;
    text-shadow: 0 0 8px var(--secondary-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

/* --- Disposition & Conteneur --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2.5rem 0;
}

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

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

/* --- En-tête & Navigation --- */
.site-header {
    background-color: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 5px var(--primary-color);
}

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

.main-nav a {
    color: var(--text-muted-color);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

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

/* --- Section Héro (Page d'accueil) --- */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    background: radial-gradient(circle, var(--surface-color) 0%, var(--bg-color) 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* --- Carte d'Article de Blog --- */
.articles-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

@media (min-width: 1200px) {
    .article-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;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.2);
}

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

.article-card-content h3 {
    font-size: 1.3rem;
}

.read-more-btn {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    margin-top: 1rem;
}

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

/* --- Barre Latérale --- */
.sidebar-widget {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

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

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

.sidebar-widget ul li a {
    color: var(--text-muted-color);
    font-weight: 400;
}

/* --- Page d'Article --- */
.article-full {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

.cta-section {
    border: 2px solid var(--primary-color);
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
    border-radius: var(--border-radius);
    background-color: rgba(0, 245, 212, 0.05);
}

/* --- Pied de Page --- */
.site-footer {
    background-color: #050510;
    color: var(--text-muted-color);
    padding: 2.5rem 0;
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

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

/* --- Pages de Contenu (À propos, Contact, Offres) --- */
.content-page {
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    min-height: 60vh;
}
