/*
Theme Name:   Synerg-In 2026
Theme URI:    https://synergin.com
Description:  Thème WordPress moderne pour Synerg-In avec support Elementor
Author:       Synerg-In
Author URI:   https://synergin.com
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  synergin-2026
Tags:         custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments
*/

/* ========================================
   STYLES DE BASE DU THÈME
   ======================================== */

body {
    margin: 0;
    padding: 0;
    font-family: Roboto;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: #2F2E2A;
    /*background-color: #2f2e2a;*/
}

@media screen and (max-width: 767px) {
    body {
        font-size: 12px;
    }
}

/* ========================================
   STYLES POUR LES ARTICLES INDIVIDUELS MODERNES
   ======================================== */

body.single .site-main {
    padding-top: 10rem;
}

.modern-single {
    background-image:url("/wp-content/uploads/2025/12/fond_nid_abeille-scaled.avif");
    min-height: 100vh;
    padding: 2rem 0;
}

.modern-single .container {
    max-width: 84rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.modern-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header moderne */
.modern-header {
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modern-title {
    font-size: 5.625rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.modern-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-separator {
    opacity: 0.6;
}

/* Image mise en avant */
.modern-featured-image {
    position: relative;
    margin: 0;
}

.modern-featured-image .featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Contenu moderne */
.modern-content {
    padding: 3rem;
}

.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: #555;
}

.content-wrapper p img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}


/* Sidebar moderne */
.modern-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    height: fit-content;
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #333;
}

.recent-post {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recent-content a {
    display: block;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-content a:hover {
    color: #667eea;
}

.recent-date {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    body.single .site-main {
        padding-top: 6rem;
    }

    .modern-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .modern-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-separator {
        display: none;
    }
    
    .modern-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .modern-single .container {
        padding: 0 1rem;
    }
}

