:root {
    /* Couleurs inspirées du logo Yapbreak - Thème Clair */
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --accent-color: #FF5722;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    /* Thème Sombre */
    --primary-color: #1565C0;
    --secondary-color: #0D47A1;
    --accent-color: #FF7043;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-color: #1a1a1a;
    --bg-light: #2a2a2a;
    --border-color: #404040;
    --shadow-color: rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    background-color: var(--bg-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    position: relative;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Icon switching in navbar */
.nav-logo .icon-dark {
    display: none;
}

[data-theme="dark"] .nav-logo .icon-light {
    display: none;
}

[data-theme="dark"] .nav-logo .icon-dark {
    display: inline;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {


/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.theme-toggle:hover .theme-icon {
    color: white;
}

.theme-icon {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.theme-icon-sun {
    display: none;
}

[data-theme="dark"] .theme-icon-sun {
    display: inline;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

.theme-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}   color: var(--primary-color);
}

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

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero-content .logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.hero-content .logo-dark {
    display: none;
}

[data-theme="dark"] .hero-content .logo-light {
    display: none;
}

[data-theme="dark"] .hero-content .logo-dark {
    display: inline;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Content */
.content, .page-content {
    max-width: 900px;
    margin: 0 auto;
}

.content h1, .page-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.content h2, .page-content h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content h3, .page-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.content p, .page-content p {
    margin-bottom: 1.2rem;
}

.content ul, .page-content ul {
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    margin-left: 1rem;
    list-style-position: outside;
}

.content li, .page-content li {
    margin-bottom: 0.5rem;
}

.content li strong, .page-content li strong {
    color: var(--primary-color);
}

.content hr, .page-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 3rem 0;
}

.content a, .page-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.content a:hover, .page-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Pages */
.single-page, .list-page {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header time {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    text-align: right;
}

/* Additional page-content styles */
.page-content {
    line-height: 1.8;
}

/* Blog posts list */
.posts-list {
    margin-top: 3rem;
}

.post-item {
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post-item h2 {
    margin-bottom: 0.5rem;
}

.post-item h2 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.post-item time {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.post-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background-color: var(--bg-light);
    border-top: 2px solid var(--primary-color);
    text-align: center;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.6rem;
    }

    .container {
        padding: 1rem;
    }
}
