/*
Theme Name: Laurent Benarbia v2
Theme URI: https://example.com
Author: Laurent Benarbia
Author URI: https://example.com
Description: Thème WordPress moderne avec mise en page split-screen pour la page d'accueil
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: laurent-benarbia
*/

/* Reset & Base */
* {
    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: #333;
}

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

/* Inline Navigation */
.inline-navigation {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.inline-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    flex-wrap: wrap;
}

.inline-nav-menu li {
    margin: 0;
}

.inline-nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.inline-nav-menu a:hover,
.inline-nav-menu .current-menu-item a {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Split Screen Layout */
.split-screen-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.split-left {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.split-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #ffffff;
}

.content-wrapper {
    max-width: 600px;
    width: 100%;
}

/* Typography */
.content-wrapper h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #1a1a1a;
}

.content-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #666;
}

.content-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.content-wrapper strong {
/*     display: block; */
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Links & Buttons */
.content-wrapper a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: #004499;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #0066cc;
    color: #ffffff !important;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 2rem;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #004499;
}

/* Sections */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Lists */
.content-wrapper ul:not(.inline-nav-menu) {
    list-style: none;
    padding-left: 0;
}

.content-wrapper ul:not(.inline-nav-menu) li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.content-wrapper ul:not(.inline-nav-menu) li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: 600;
}

/* Divers */
.border {border:1px solid #ddd}

/* Responsive Design */
@media (max-width: 1024px) {
    .split-right {
        padding: 40px;
    }
    
    .content-wrapper h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .split-screen-container {
        flex-direction: column;
    }
    
    .split-left {
        min-height: 40vh;
    }
    
    .split-right {
        padding: 30px 20px;
    }
    
    .content-wrapper h1 {
        font-size: 2rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.2rem;
    }
    
    .content-wrapper p {
        font-size: 1rem;
    }
    
    /* Inline Navigation Mobile */
    .inline-nav-menu {
        gap: 15px;
    }
    
    .inline-nav-menu a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .split-right {
        padding: 20px 15px;
    }
    
    .content-wrapper h1 {
        font-size: 1.8rem;
    }
}

/* Fixed positioning option (optional) */
.split-left.fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    height: 100vh;
}

.split-right.with-fixed-left {
    margin-left: 50%;
}

/* Post & Page Styles */
.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: #0066cc;
    text-decoration: none;
}

.entry-meta a:hover {
    text-decoration: underline;
}

.entry-title,
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #1a1a1a;
}

.entry-content,
.page-content {
    margin-bottom: 3rem;
}

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

.entry-content h2,
.page-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.entry-content h3,
.page-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.entry-content blockquote,
.page-content blockquote {
    border-left: 4px solid #0066cc;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.entry-content img,
.page-content img {
    border-radius: 5px;
    margin: 2rem 0;
}

/* Tags */
.entry-tags {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.entry-tags strong {
    display: inline;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.entry-tags .tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 12px;
    margin: 5px 5px 5px 0;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.entry-tags .tag:hover {
    background: #0066cc;
    color: white;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-navigation a {
    flex: 1;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #0066cc;
    color: white;
}

.nav-previous a {
    text-align: left;
}

.nav-next a {
    text-align: right;
}

.back-to-blog {
    margin-top: 2rem;
}

/* Blog Archive */
.blog-archive {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 60px 20px;
}

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

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
}

.archive-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 4rem;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    display: block;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

.post-meta a {
    color: #0066cc;
    text-decoration: none;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0066cc;
}

.post-excerpt {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #0066cc;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #004499;
}

.no-posts {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 4rem 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0066cc;
    color: white;
}

@media (max-width: 768px) {
    .archive-header h1 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Blog Posts List - Simple version for split-screen */
.blog-posts-list {
    margin-top: 2rem;
}

.blog-post-item {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.blog-post-item:last-child {
    border-bottom: none;
}

.blog-post-item .post-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.blog-post-item .post-meta a {
    color: #0066cc;
    text-decoration: none;
}

.blog-post-item .post-meta a:hover {
    text-decoration: underline;
}

.blog-post-item .post-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-post-item .post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-item .post-title a:hover {
    color: #0066cc;
}

.blog-post-item .post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0.8rem;
}

.blog-post-item .read-more {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-post-item .read-more:hover {
    color: #004a99;
    transform: translateX(5px);
}

/* Pagination for blog list */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0066cc;
    color: white;
}

.pagination .prev,
.pagination .next {
    font-weight: 500;
}

@media (max-width: 768px) {
    .split-left.fixed {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .split-right.with-fixed-left {
        margin-left: 0;
    }
    
    .entry-title,
    .page-title {
        font-size: 1.8rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .blog-post-item .post-title {
        font-size: 1.3rem;
    }
    
    .blog-post-item .post-excerpt {
        font-size: 0.95rem;
    }
}
