
/* ---
Tech / Futuristic Theme
Font: Inter
Language: French
Tone: Informative & Straightforward
--- */

/* === ROOT VARIABLES === */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0c0;
    --accent-primary: #00ffff; /* Cyan */
    --accent-secondary: #e94560;
    --border-color: #3a3a5a;
    --font-family: 'Inter', sans-serif;
}

/* === GENERAL STYLES === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-left: 4px solid var(--accent-primary); padding-left: 1rem;}
h3 { font-size: 1.5rem; color: var(--accent-primary); }
p { margin-bottom: 1.5rem; color: var(--text-secondary); }

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

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-primary);
}

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

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

/* === HEADER & NAVIGATION === */
.site-header {
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 46, 0.8);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

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

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

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

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


/* === MAIN LAYOUT & SIDEBAR === */
.main-content {
    padding: 3rem 0;
}

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

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

/* === BLOG ARTICLES SECTION (HOMEPAGE) === */
.articles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.article-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    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 10px 20px rgba(0, 255, 255, 0.1);
}

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

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

.card-content h3 a:hover {
    text-decoration: underline;
}

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

.read-more-btn {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

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

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

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

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

.sidebar-widget ul li a {
    color: var(--text-secondary);
}

.sidebar-widget ul li a:hover {
    color: var(--accent-primary);
}

.promo-text p {
    background-color: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent-secondary);
    font-style: italic;
    color: var(--text-primary);
}

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

/* === ARTICLE PAGE SPECIFIC STYLES === */
.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.article-content {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}
.article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cta-box {
    background-color: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
    border: 1px dashed var(--accent-primary);
}

.cta-box h3 {
    margin-top: 0;
    color: var(--accent-primary);
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1rem;
    letter-spacing: 1px;
    transition: transform 0.2s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    text-shadow: none;
}

/* === STATIC PAGES (About, Contact, etc) === */
.static-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.static-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.static-page p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === CONTACT FORM (EXAMPLE) === */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #33ffff;
}

/* Responsive Menu for Mobile */
#menu-toggle {
    display: none;
}
.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 2rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .article-header h1 { font-size: 2.2rem; }

    .menu-icon {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .main-nav ul li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    #menu-toggle:checked ~ .main-nav {
        display: block;
    }
}
