/*
Theme Name: Edge Child
Theme URI: https://www.maison-neuve.net/
Description: Theme enfant Edge pour maison-neuve.net - Design modernise
Author: Digitalyz
Template: edge
Version: 1.0.0
*/

/* ===== GLOBAL ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #1a1a2e;
    line-height: 1.8;
    font-size: 16px;
    background: #f8f9fa !important;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: #1a1a2e; }
a { color: #2d6a4f; transition: color 0.2s; }
a:hover { color: #1b4332; }

/* ===== HEADER ===== */
.site-header { border-bottom: 1px solid #e9ecef; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.navbar { padding: 0 !important; }
.navbar .navbar-brand { padding: 12px 0; }
.navbar-nav .nav-link {
    padding: 16px 18px !important;
    color: #1a1a2e !important;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
    color: #2d6a4f !important;
    border-bottom-color: #2d6a4f;
    background: #f8f9fa;
}

/* ===== PAGE CONTENT ===== */
.stretched-layout .container { max-width: 1200px; }
.col-md-12.content-area {
    background: #fff;
    border-radius: 8px;
    padding: 35px 30px !important;
    margin-top: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ===== HOMEPAGE WPBakery FIXES ===== */
/* Hide ugly blue VC heading bars */
.wpb_content_element h2, 
.vc_custom_heading,
.vc_tta-title-text {
    background: transparent !important;
    color: #1a1a2e !important;
    font-size: 26px;
    padding-left: 15px !important;
    border-left: 4px solid #2d6a4f;
    margin: 30px 0 20px !important;
}
.wpb_content_element { margin-bottom: 15px !important; }

/* Style cards for type maison boxes */
.wpb_column > .vc_column-inner > .wpb_wrapper > a,
.vc_row .wpb_content_element > .wpb_wrapper > a[href*="type-maison"] {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
    color: #1a1a2e !important;
    font-weight: 500;
}
.wpb_column > .vc_column-inner > .wpb_wrapper > a:hover,
.vc_row .wpb_content_element > .wpb_wrapper > a[href*="type-maison"]:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
}

/* Fix Savoir plus buttons - target all common patterns */
.wpb_wrapper a[href*="savoir-plus"]:last-child,
.wpb_wrapper a[href*="savoir"]:last-child,
.vc_btn3 {
    display: inline-block !important;
    padding: 10px 24px !important;
    background: #2d6a4f !important;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none !important;
    transition: all 0.3s;
    margin-top: 10px;
}
.wpb_wrapper a[href*="savoir-plus"]:last-child:hover,
.wpb_wrapper a[href*="savoir"]:last-child:hover,
.vc_btn3:hover {
    background: #1b4332 !important;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,106,79,0.3);
}

/* ===== SINGLE POST ===== */
.single-post .content-area { padding: 40px; }
.single-post .entry-title { font-size: 32px; margin-bottom: 15px; }
.single-post .entry-meta {
    color: #6c757d;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.single-post .entry-content { font-size: 17px; line-height: 1.9; }
.single-post .entry-content p { margin-bottom: 20px; }
.single-post .entry-content h2 {
    font-size: 24px; margin: 35px 0 15px;
    border-left: 4px solid #2d6a4f; padding-left: 15px;
}
.single-post .entry-content h3 { font-size: 20px; margin: 25px 0 12px; }
.single-post .post-thumbnail img {
    width: 100%; border-radius: 8px; margin-bottom: 25px;
}

/* ===== ARCHIVE / BLOG ===== */
.archive .content-area, .blog .content-area { padding: 40px; }
.archive .page-title, .blog .page-title {
    font-size: 28px;
    border-left: 4px solid #2d6a4f;
    padding-left: 15px;
    margin-bottom: 30px;
}
.archive article, .blog article {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.archive article:hover, .blog article:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.archive article .entry-header, .blog article .entry-header { padding: 20px 20px 0; }
.archive .entry-title, .blog .entry-title { font-size: 20px; margin-bottom: 8px; }
.archive .entry-summary, .blog .entry-summary {
    padding: 0 20px 20px; color: #6c757d; font-size: 14px;
}
.archive .entry-footer, .blog .entry-footer { padding: 0 20px 15px; font-size: 13px; color: #adb5bd; }

/* ===== SIDEBAR ===== */
.widget-area { padding: 25px; background: #fff; border-radius: 8px; }
.widget-title {
    font-size: 18px;
    border-left: 4px solid #2d6a4f;
    padding-left: 12px;
    margin-bottom: 20px;
}
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #f1f3f5; }
.widget ul li a { color: #495057; }

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a2e !important;
    color: #ced4da;
    padding: 40px 0 !important;
    margin-top: 60px;
}
.site-footer a { color: #74c69d; }
.site-footer a:hover { color: #95d5b2; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-nav .nav-link { padding: 12px 15px !important; }
    .col-md-12.content-area { padding: 20px 15px !important; }
    .single-post .entry-title { font-size: 24px; }
}
