/*
Theme Name: M1Press
Theme URI: https://nextpool.com
Description: Custom WordPress theme with Timber and WPBakery
Version: 1.0.0
Author: Jonathan
Text Domain: m1press
*/

/* Reset & Base */
* { box-sizing: border-box; }
body { 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Header */
header, .site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation */
nav, .main-navigation {
    display: flex;
    gap: 30px;
}

nav a, .main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, .main-navigation a:hover {
    color: #0066cc;
}

/* Logo */
.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Content */
.container, .wpb_row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area, main {
    padding: 40px 0;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-6 { width: 50%; padding: 0 15px; }
.col-4 { width: 33.333%; padding: 0 15px; }
.col-3 { width: 25%; padding: 0 15px; }

/* Shortcodes */
.bloc-group {
    margin-bottom: 30px;
}

.number-picto {
    text-align: center;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 10px;
}

.animated-number {
    font-size: 48px;
    font-weight: bold;
    color: #0066cc;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-content {
    margin-top: 15px;
}

/* Post List */
.post-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.post-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 300px;
}

.post-item h3 {
    margin-top: 0;
    color: #0066cc;
}

.post-item a {
    text-decoration: none;
    color: #0066cc;
}

.post-excerpt {
    color: #666;
    margin-top: 10px;
}

/* Images */
.m1press-img {
    margin: 20px 0;
}

.m1press-img img {
    max-width: 100%;
    height: auto;
}

.text_left { text-align: left; }
.text_center { text-align: center; }
.text_right { text-align: right; }

/* Footer */
footer, .site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

#footer_logo {
    text-align: center;
    margin-bottom: 30px;
}

#footer_logo img {
    max-width: 200px;
}

#copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

#copyright a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

#copyright a:hover {
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }

p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .col-6, .col-4, .col-3 {
        width: 100%;
    }
    
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .animated-number {
        font-size: 36px;
    }
}

/* WPBakery Compatibility */
.vc_row { margin-bottom: 30px; }
.wpb_column { padding: 0 15px; }
.wpb_wrapper { margin-bottom: 20px; }
