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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #e5e5e5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: #0a0a0a;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Single Post Layout */
.single-post {
    margin: 100px 0 0 0;
}

/* Post Header */
.post-header {
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 400;
}

.post-separator {
    opacity: 0.5;
}

.post-date {
    font-variant-numeric: tabular-nums;
}

.post-title {
    font-size: clamp(2.2rem, 3.5rem, 3.8rem);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out forwards;
    line-height: 1.2 !important;
}

.post-excerpt {
    font-size: 1.1em;
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.post-featured-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-featured-image:hover .featured-img {
    transform: scale(1.02);
}

/* Post Content */
.post-content {
    font-size: 1.1em;
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #ffffff;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 600;
    line-height: 1.3;
}

.post-content h1 { font-size: 2.2em; }
.post-content h2 { font-size: 1.8em; }
.post-content h3 { font-size: 1.4em; }
.post-content h4 { font-size: 1.2em; }
.post-content h5 { font-size: 1.1em; }
.post-content h6 { font-size: 1em; }

.post-content p {
    margin-bottom: 1.5em;
}

.post-content a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #444;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.post-content a:hover {
    text-decoration-color: #888;
}

.post-content ul,
.post-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote {
    border-left: 3px solid #333;
    padding-left: 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: #b3b3b3;
}

.post-content pre {
    background-color: #111;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
    font-size: 0.9em;
    border: 1px solid #222;
}

.post-content code {
    background-color: #111;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #fff;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* Single Post Footer */
.single-post-footer {
    border-top: 1px solid #222;
    padding-top: 30px;
}

/* Tags communs */
.single-post-tag-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e5e5;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-post-tag-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Single Post Navigation */
.single-post-navigation {
    margin-bottom: 60px;
}

.single-post-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-radius: 12px;
}

.single-post-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.single-post-nav-btn:hover {
    transform: translateY(-2px);
}

.single-post-nav-placeholder {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.single-post-nav-icon {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.single-post-nav-btn:hover .single-post-nav-icon {
    opacity: 1;
}

/* Rotation des flèches */
.single-post-nav-icon-left {
    transform: rotate(-90deg);
}

.single-post-nav-icon-right {
    transform: rotate(90deg);
}

/* Tags entre les boutons (par défaut) */
.single-post-tags-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    flex-grow: 1;
    margin: 0 20px;
}

/* Tags au-dessus (cachés par défaut) */
.single-post-tags-overflow {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Page Links */
.page-links {
    margin: 2em 0;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #111;
    border: 1px solid #222;
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-links a:hover {
    background-color: #1a1a1a;
    border-color: #333;
    color: #fff;
}

/* Logique responsive avec JavaScript */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .single-post {
        margin: 90px 0 0 0;
    }
    
    .post-content {
        font-size: 1em;
    }
    
    .single-post-nav-container {
        justify-content: space-between;
        padding: 16px;
    }
    
    .single-post-nav-btn {
        width: 44px;
        height: 44px;
    }
    
    .single-post-nav-icon {
        width: 30px;
        height: 30px;
    }
    
    .single-post-nav-placeholder {
        width: 44px;
        height: 44px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .single-post-tags-center {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 2.5rem;
    }
    
    .post-excerpt {
        font-size: 1rem;
    }
    
    .single-post-nav-container {
        padding: 12px;
    }
    
    .single-post-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .single-post-nav-icon {
        width: 25px;
        height: 25px;
    }
    
    .single-post-nav-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .single-post-tags-center {
        margin: 0 5px;
    }
}