/*
Theme Name:   Mega Remorque Child
Theme URI:    http://localhost/mega
Description:  Thème enfant personnalisé pour Mega Remorque
Author:       Antigravity
Template:     astra
Version:      1.0
Text Domain:  mega-remorque-child
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #fff; }

/* ===== HIDE ASTRA DEFAULT HEADER & FOOTER ===== */
#masthead, .ast-hf-header, header.site-header, .site-header { display: none !important; }
.footer-widget-area, #colophon, .site-footer, .ast-hf-footer { display: none !important; }

/* ===== HIDE PAGE TITLE ===== */
.ast-page-title-area, .entry-title, .page-title { display: none !important; }
.ast-container, .site-content, .entry-content, #content, main#main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    float: none !important;
}
.entry-content { padding: 0 !important; margin: 0 !important; }
.ast-article-post, .ast-single-post { padding: 0 !important; display: block !important; width: 100% !important; }

/* Forcer l'empilement vertical des sections */
#mega-hero,
.mega-section {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
}


/* ===== CUSTOM HEADER ===== */
#mega-header {
    background-color: #1B365D;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
#mega-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}
#mega-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
#mega-header .logo-text { line-height: 1; text-transform: uppercase; }
#mega-header .logo-text .top { color: #E57222; font-weight: 900; font-size: 20px; display: block; }
#mega-header .logo-text .bottom { color: #FFFFFF; font-weight: 900; font-size: 20px; display: block; }
#mega-header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s;
}
#mega-header nav a:hover, #mega-header nav a.active { color: #E57222; }
#mega-header nav { display: flex; gap: 28px; align-items: center; }
#mega-header .header-icons { display: flex; gap: 18px; align-items: center; }
#mega-header .header-icons a { color: #fff; }
#mega-header .cart-icon { position: relative; }
#mega-header .cart-badge {
    position: absolute; top: -8px; right: -10px;
    background: #E57222; color: white; border-radius: 50%;
    font-size: 10px; font-weight: 700;
    width: 17px; height: 17px;
    display: flex; align-items: center; justify-content: center;
}

/* ===== HERO SECTION ===== */
#mega-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: #1B365D url('https://images.unsplash.com/photo-1605371924599-2d0365da700e?w=1920&q=80') center/cover no-repeat;
    padding: 80px 20px;
}
#mega-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: rgba(20, 40, 80, 0.75);
}
.mega-container {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}
#mega-hero .hero-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto 0 calc((100vw - 1240px) / 2);
    width: 100%;
    z-index: 2;
}
@media (max-width: 1280px) {
    #mega-hero .hero-inner {
        margin-left: 20px;
    }
}

#mega-hero h1 {
    color: #fff;
    font-size: 52px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 18px;
}
#mega-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
}
#mega-hero .hero-btn {
    display: inline-block;
    background: #E57222;
    color: #fff;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.2s;
}
#mega-hero .hero-btn:hover { background: #c95e0f; transform: translateY(-2px); }

/* ===== SECTION TITLES ===== */
.mega-section { padding: 80px 20px; }
.mega-section.bg-grey { background: #F7F8FA; }
.mega-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    color: #1B365D;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.mega-section-line {
    width: 60px; height: 4px;
    background: #E57222;
    margin: 0 auto 50px auto;
    border-radius: 2px;
}

/* ===== CATEGORIES GRID ===== */
.mega-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.mega-cat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.mega-cat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.mega-cat-img-wrap { height: 180px; width: 100%; overflow: hidden; background: #F8FAFC; }
.mega-cat-card img, .mega-cat-img-wrap img { width: 100%; height: 180px; object-fit: cover; display: block; }

.mega-cat-card-body { padding: 18px; text-align: center; }
.mega-cat-card-title { font-weight: 800; font-size: 16px; text-transform: uppercase; color: #1B365D; margin-bottom: 8px; }
.mega-cat-card-link { font-size: 12px; font-weight: 700; color: #E57222; text-transform: uppercase; letter-spacing: 1px; }

/* ===== PRODUCTS GRID ===== */
.mega-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.mega-prod-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}
.mega-prod-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.mega-prod-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.mega-prod-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.mega-prod-title { font-weight: 800; font-size: 16px; color: #111; margin-bottom: 8px; }
.mega-prod-desc { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 14px; flex-grow: 1; }
.mega-prod-price { font-size: 22px; font-weight: 900; color: #E57222; margin-bottom: 6px; }
.mega-prod-stars { color: #F5B301; font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.mega-prod-btn {
    background: #E57222;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}
.mega-prod-btn:hover { background: #c95e0f; }

/* ===== CUSTOM FOOTER ===== */
#mega-footer {
    background: #1B365D;
    color: #fff;
    padding: 50px 20px;
    margin-top: 0;
}
#mega-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
#mega-footer .footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
#mega-footer .footer-logo .top { color: #E57222; font-weight: 900; font-size: 20px; display: block; text-transform: uppercase; }
#mega-footer .footer-logo .bottom { color: #fff; font-weight: 900; font-size: 20px; display: block; text-transform: uppercase; }
#mega-footer .footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
#mega-footer .footer-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
#mega-footer .footer-links a:hover { color: #E57222; }
#mega-footer .footer-social { display: flex; gap: 16px; }
#mega-footer .footer-social a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
#mega-footer .footer-social a:hover { color: #E57222; }
#mega-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ACCUEIL ===== */
@media(max-width: 1024px) {
    .mega-cat-grid, .mega-prod-grid { grid-template-columns: repeat(2, 1fr); }
    #mega-hero .hero-inner { margin-left: 0; }
}
@media(max-width: 640px) {
    .mega-cat-grid, .mega-prod-grid { grid-template-columns: 1fr; }
    #mega-hero h1 { font-size: 34px; }
    #mega-header nav { display: none; }
}

/* =======================================================
   PAGE BOUTIQUE - MEGA REMORQUE
   ======================================================= */

/* --- Hero Boutique --- */
.shop-hero {
    background: linear-gradient(135deg, #1B365D 0%, #2a4a7f 100%);
    padding: 48px 20px 40px;
    position: relative;
    overflow: hidden;
}
.shop-hero::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 400px; height: 400px;
    background: rgba(229,114,34,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.shop-hero-inner { max-width: 1200px; margin: 0 auto; }
.shop-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 12px;
}
.shop-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color .2s; }
.shop-breadcrumb a:hover { color: #E57222; }
.shop-breadcrumb .sep { color: rgba(255,255,255,0.35); }
.shop-hero-title {
    color: #fff; font-size: 36px; font-weight: 900;
    text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.2; margin: 0;
}
.shop-hero-desc {
    font-size: 15px; font-weight: 400; color: rgba(255,255,255,0.75);
    text-transform: none; letter-spacing: 0; margin-top: 8px; margin-bottom: 0;
}

/* --- Layout principal (centré, max-width 1240px) --- */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    align-items: start;
}

/* --- SIDEBAR --- */
.shop-sidebar { position: sticky; top: 80px; }
.sidebar-toggle {
    display: none; width: 100%; background: #1B365D; color: #fff;
    border: none; padding: 12px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px;
}
.sidebar-toggle .chevron { transition: transform .3s; }
.sidebar-toggle.open .chevron { transform: rotate(180deg); }
.sidebar-content { display: flex; flex-direction: column; gap: 16px; }
.sidebar-block {
    background: #fff; border-radius: 14px; padding: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06); border: 1px solid #f0f0f0;
}
.sidebar-title {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
    color: #6B7280; display: flex; align-items: center; gap: 7px; margin-bottom: 14px;
}
.sidebar-search {
    display: flex; border: 1.5px solid #E5E7EB; border-radius: 8px;
    overflow: hidden; transition: border-color .2s;
}
.sidebar-search:focus-within { border-color: #E57222; }
.sidebar-search-input {
    flex: 1; border: none; padding: 9px 11px; font-size: 13px;
    outline: none; background: #fff; color: #111;
}
.sidebar-search-btn {
    background: #E57222; border: none; padding: 0 12px; color: #fff;
    cursor: pointer; transition: background .2s; display: flex; align-items: center;
}
.sidebar-search-btn:hover { background: #c95e0f; }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.sidebar-cat-link {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border-radius: 8px; text-decoration: none; color: #374151;
    font-size: 13px; font-weight: 500; transition: background .15s, color .15s;
}
.sidebar-cat-link:hover { background: #FFF3E8; color: #E57222; }
.sidebar-cat-link.active { background: #E57222; color: #fff; font-weight: 700; }
.sidebar-cat-link.active .cat-count { background: rgba(255,255,255,0.3); color: #fff; }
.cat-icon { font-size: 15px; }
.cat-name { flex: 1; }
.cat-count {
    background: #F3F4F6; color: #6B7280; font-size: 11px;
    font-weight: 700; padding: 2px 7px; border-radius: 20px;
}
.price-range-display {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; font-weight: 700; color: #1B365D; margin-bottom: 14px;
}
.dual-slider {
    position: relative; height: 32px; display: flex;
    align-items: center; margin-bottom: 12px;
}
.slider-track {
    position: absolute; width: 100%; height: 4px; background: #E5E7EB;
    border-radius: 2px; top: 50%; transform: translateY(-50%); z-index: 1;
}
.slider-range { position: absolute; height: 100%; background: #E57222; border-radius: 2px; }
.range-input {
    position: absolute; width: 100%; height: 4px; background: transparent;
    border: none; -webkit-appearance: none; pointer-events: none; z-index: 2;
}
.range-input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 16px; height: 16px;
    background: #fff; border: 2.5px solid #E57222; border-radius: 50%;
    cursor: pointer; pointer-events: all; box-shadow: 0 1px 6px rgba(0,0,0,0.15);
    transition: transform .15s;
}
.range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.price-filter-btn {
    width: 100%; background: #1B365D; color: #fff; border: none;
    padding: 9px; border-radius: 8px; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: background .2s;
}
.price-filter-btn:hover { background: #E57222; }
.sort-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.sort-pill {
    display: inline-block; padding: 5px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600; background: #F3F4F6;
    color: #374151; text-decoration: none; transition: background .15s, color .15s;
}
.sort-pill:hover { background: #FFF3E8; color: #E57222; }
.sort-pill.active { background: #E57222; color: #fff; }
.sidebar-promo-block {
    background: linear-gradient(135deg, #1B365D, #2a4a7f);
    border: none; text-align: center; color: rgba(255,255,255,0.85);
}
.sidebar-promo-block p { font-size: 13px; margin: 6px 0 12px; }
.sidebar-promo-block strong { color: #E57222; }
.promo-badge-big {
    display: inline-block; background: #E57222; color: #fff;
    font-size: 11px; font-weight: 800; padding: 3px 12px;
    border-radius: 20px; letter-spacing: 1px; margin-bottom: 4px;
}
.promo-see-btn {
    display: inline-block; background: #fff; color: #1B365D;
    text-decoration: none; padding: 8px 18px; border-radius: 50px;
    font-size: 12px; font-weight: 700; transition: background .2s, color .2s;
}
.promo-see-btn:hover { background: #E57222; color: #fff; }

/* --- MAIN SHOP --- */
.shop-main { min-width: 0; }
.shop-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #E5E7EB;
}
.shop-result-count { font-size: 13px; color: #6B7280; margin: 0; }
.shop-result-count strong { color: #1B365D; }
.shop-view-toggle { display: flex; gap: 6px; }
.view-btn {
    background: #F3F4F6; border: none; width: 32px; height: 32px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #9CA3AF; transition: background .15s, color .15s;
}
.view-btn.active, .view-btn:hover { background: #1B365D; color: #fff; }

/* --- Grille 4 produits par ligne --- */
.shop-products-grid,
ul.products,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Annuler les floats et widths d'Astra sur les items produits */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.shop-products-grid .mega-product-card,
ul.products .mega-product-card {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

.shop-products-grid.list-view,
ul.products.list-view,
.woocommerce ul.products.list-view {
    grid-template-columns: 1fr !important;
}

.shop-products-grid.list-view .mega-product-card,
ul.products.list-view .mega-product-card {
    flex-direction: row; max-height: 220px;
}
.shop-products-grid.list-view .mpc-image-wrap,
ul.products.list-view .mpc-image-wrap {
    width: 240px; min-width: 240px;
}

/* --- Carte Produit --- */
.mega-product-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #F0F0F0; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease; position: relative;
}
.mega-product-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.mega-product-card.out-of-stock { opacity: 0.72; }
.mpc-image-wrap {
    position: relative; overflow: hidden; aspect-ratio: 4/3;
    background: #F7F8FA; flex-shrink: 0;
}
.mpc-image-link { display: block; width: 100%; height: 100%; }
.mpc-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease, opacity .3s ease; }
.mpc-img-primary { position: absolute; inset: 0; z-index: 1; }
.mpc-img-hover { position: absolute; inset: 0; z-index: 2; opacity: 0; }
.mega-product-card:hover .mpc-img-primary { transform: scale(1.06); }
.mega-product-card:hover .mpc-img-hover { opacity: 1; }
.mpc-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 5px; z-index: 10;
}
.mpc-badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-sale { background: #EF4444; color: #fff; }
.badge-new { background: #10B981; color: #fff; }
.badge-featured { background: #1B365D; color: #fff; }
.badge-outofstock { background: #6B7280; color: #fff; }
.badge-lowstock { background: #F59E0B; color: #fff; }
.mpc-quick-actions {
    position: absolute; bottom: 12px; right: 12px;
    display: flex; flex-direction: column; gap: 6px; z-index: 10;
    opacity: 0; transform: translateX(12px);
    transition: opacity .25s ease, transform .25s ease;
}
.mega-product-card:hover .mpc-quick-actions { opacity: 1; transform: translateX(0); }
.mpc-qa-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.95); color: #1B365D;
    border: none; padding: 8px 12px; border-radius: 50px;
    font-size: 12px; font-weight: 700; cursor: pointer;
    text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background .15s, color .15s; white-space: nowrap;
}
.mpc-qa-btn:hover { background: #E57222; color: #fff; }
.mpc-body {
    padding: 18px 20px 20px; display: flex;
    flex-direction: column; flex-grow: 1; gap: 6px;
}
.mpc-category {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #E57222;
}
.mpc-title { font-size: 15px; font-weight: 800; margin: 0; line-height: 1.35; }
.mpc-title a { color: #111; text-decoration: none; transition: color .15s; }
.mpc-title a:hover { color: #E57222; }
.mpc-rating { display: flex; align-items: center; gap: 3px; }
.mpc-rating-count { font-size: 11px; color: #9CA3AF; margin-left: 4px; }
.mpc-desc {
    font-size: 13px; color: #6B7280; line-height: 1.5; margin: 0; flex-grow: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.mpc-footer { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.mpc-price-wrap {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
}
.mpc-price .woocommerce-Price-amount, .mpc-price .amount {
    font-size: 20px !important; font-weight: 900 !important; color: #E57222 !important;
}
.mpc-price del .woocommerce-Price-amount, .mpc-price del .amount {
    font-size: 14px !important; font-weight: 500 !important; color: #9CA3AF !important;
}
.mpc-stock { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.mpc-stock.instock { color: #16A34A; }
.mpc-stock.outofstock { color: #DC2626; }
.mpc-stock.onbackorder { color: #D97706; }
.mpc-btn-cart, .mpc-btn-details {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px 16px; border-radius: 50px;
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; text-decoration: none; transition: background .2s, transform .15s; border: none;
}
.mpc-btn-cart { background: #E57222; color: #fff; }
.mpc-btn-cart:hover { background: #c95e0f; transform: translateY(-1px); }
.mpc-btn-cart.added { background: #16A34A; }
.mpc-btn-details { background: #1B365D; color: #fff; }
.mpc-btn-details:hover { background: #E57222; transform: translateY(-1px); }
.mpc-btn-disabled { background: #E5E7EB; color: #9CA3AF; cursor: not-allowed; }
.mpc-btn-disabled:hover { transform: none; background: #E5E7EB; }

/* --- Pagination WooCommerce --- */
.woocommerce-pagination { display: flex; justify-content: center; margin-top: 40px; }
.woocommerce-pagination ul.page-numbers {
    display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; align-items: center;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600;
    text-decoration: none; background: #fff; color: #374151;
    border: 1.5px solid #E5E7EB; transition: background .15s, color .15s, border-color .15s;
}
.woocommerce-pagination ul.page-numbers li a:hover {
    background: #FFF3E8; border-color: #E57222; color: #E57222;
}
.woocommerce-pagination ul.page-numbers li span.current {
    background: #E57222; border-color: #E57222; color: #fff;
}

/* --- Aucun produit trouvé --- */
.shop-empty { text-align: center; padding: 80px 20px; }
.shop-empty-icon { font-size: 64px; margin-bottom: 20px; }
.shop-empty h2 { font-size: 24px; color: #1B365D; margin-bottom: 10px; }
.shop-empty p { color: #6B7280; margin-bottom: 24px; }
.btn-reset-filters {
    display: inline-block; background: #E57222; color: #fff;
    padding: 12px 28px; border-radius: 50px; text-decoration: none;
    font-weight: 700; font-size: 14px; transition: background .2s;
}
.btn-reset-filters:hover { background: #c95e0f; }

/* --- RESPONSIVE BOUTIQUE --- */
@media (max-width: 1100px) {
    .shop-layout { grid-template-columns: 230px 1fr; gap: 20px; }
    .shop-products-grid, ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; padding: 20px 16px 40px; }
    .shop-sidebar { position: static; }
    .sidebar-toggle { display: flex; }
    .sidebar-content { display: none; }
    .sidebar-content.open { display: flex; }
    .shop-products-grid, ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .shop-hero-title { font-size: 26px; }
}
@media (max-width: 480px) {
    .shop-products-grid, ul.products { grid-template-columns: 1fr !important; }
    .mpc-quick-actions { display: none; }
}

/* ==============================
   TOASTS & ANIMATIONS JS
   ============================== */
.mega-toast {
    position: fixed;
    bottom: 30px; right: 30px;
    background: #1B365D;
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
}
.mega-toast.show { opacity: 1; transform: translateY(0); }
.mega-toast.mega-toast-error { background: #EF4444; }
.mega-toast.mega-toast-success { background: #16A34A; }

/* Spin animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

/* Bounce badge panier */
@keyframes bounce-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}
.cart-badge.bounce { animation: bounce-badge .5s ease; }
.cart-badge.has-items { display: flex !important; }

/* Animation apparition cartes */
.card-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .4s ease, transform .4s ease;
}
.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================================================
   SURCHARGES UNIVERSELLES WOOCOMMERCE & ASTRA
   ======================================================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce-page a.button,
.woocommerce-page button.button,
.product .button,
.mpc-btn-cart {
    background-color: #E57222 !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.product .button:hover,
.mpc-btn-cart:hover {
    background-color: #c95e0f !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
}

/* Masquer le titre de page généré par Astra sur la boutique */
.ast-page-title-area, .entry-title, .page-title {
    display: none !important;
}

/* Alignement du logo et conteneur principal */
#mega-header .logo-text .top { color: #E57222 !important; font-weight: 900 !important; font-size: 20px !important; display: block !important; }
#mega-header .logo-text .bottom { color: #FFFFFF !important; font-weight: 900 !important; font-size: 18px !important; display: block !important; }

.ast-container, .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =======================================================
   PAGE CONTACT - MEGA REMORQUE
   ======================================================= */
.contact-hero {
    background: linear-gradient(135deg, #1B365D 0%, #2a4a7f 100%);
    padding: 48px 20px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.contact-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
}
.contact-hero-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0;
}
.contact-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0;
    line-height: 1.5;
}

/* Layout 2 colonnes */
.contact-layout {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 30px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    align-items: start;
}
@media (max-width: 1024px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* Cartes d'information */
.contact-card-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    margin-bottom: 24px;
}
.contact-box-title {
    font-size: 22px;
    font-weight: 800;
    color: #1B365D;
    margin-bottom: 8px;
}
.contact-box-intro {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 24px;
    line-height: 1.5;
}
.contact-info-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.info-icon {
    width: 44px; height: 44px;
    background: #FFF3E8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-text {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #374151;
}
.info-text strong {
    color: #1B365D;
    font-weight: 700;
    margin-bottom: 2px;
}
.info-text a {
    color: #E57222;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}
.info-text a:hover { color: #c95e0f; }
.info-sub {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 2px;
}

/* Réassurance */
.reassurance-title {
    font-size: 16px;
    font-weight: 800;
    color: #1B365D;
    margin-bottom: 16px;
}
.reassurance-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.reassurance-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.r-icon { font-size: 20px; }
.reassurance-item strong { display: block; font-size: 13px; color: #1B365D; }
.reassurance-item p { font-size: 12px; color: #6B7280; margin: 0; }

/* Formulaire */
.form-card-box { padding: 36px; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .form-row-two { grid-template-columns: 1fr; }
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #1B365D;
}
.form-group label .required { color: #EF4444; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #E57222;
    box-shadow: 0 0 0 3px rgba(229,114,34,0.15);
}
.form-privacy {
    font-size: 12px;
    color: #6B7280;
}
.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400 !important;
}
.checkbox-label input { margin-top: 2px; }
.checkbox-label a { color: #E57222; text-decoration: underline; }

.contact-submit-btn {
    background: #E57222;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .2s, transform .2s;
}
.contact-submit-btn:hover {
    background: #c95e0f;
    transform: translateY(-2px);
}

.form-status-msg {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.form-status-msg.status-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* Carte Google Maps Section */
.contact-map-section {
    background: #F7F8FA;
    padding: 60px 20px;
}
.contact-map-container {
    max-width: 1240px;
    margin: 0 auto;
}
.map-header {
    text-align: center;
    margin-bottom: 24px;
}
.map-title {
    font-size: 26px;
    font-weight: 900;
    color: #1B365D;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.map-subtitle {
    font-size: 14px;
    color: #6B7280;
}
.map-iframe-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}


