/*
Theme Name: Fireplace Pro
Author: Amine Qtyab
Description: Thème sur-mesure pour Fireplace.ma
Version: 1.0
*/

/* ==========================================================================
   1. BASE & RESET
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; scroll-behavior: smooth; }
body { background-color: #f8f9fa; color: #333; line-height: 1.6; overflow-x: hidden; }
img, video { max-width: 100%; display: block; border-radius: 8px; }
a { text-decoration: none; color: inherit; }

/* ==========================================================================
   2. HEADER PROFESSIONNEL (DESKTOP & MOBILE)
   ========================================================================== */
.main-header { background-color: #ffffff; box-shadow: 0 2px 15px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; width: 100%; border-bottom: 1px solid #eee; padding: 15px 0;}
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center;}
.logo img { height: 40px; width: auto; }

.logo-text { font-weight: 800; font-size: 1.4rem; color: #111; text-decoration: none; letter-spacing: -1px; }
.logo-text span { color: #d9363e; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: #444; transition: color 0.3s; }
.nav-links a:hover { color: #d9363e; }

.dropdown { position: relative; }
.dropdown-content { visibility: hidden; opacity: 0; position: absolute; background-color: #fff; min-width: 240px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 8px; top: 100%; left: 0; padding: 10px 0; transition: all 0.3s; border: 1px solid #f0f0f0; }
.dropdown:hover .dropdown-content { visibility: visible; opacity: 1; transform: translateY(5px); }
.dropdown-content a { padding: 10px 20px; display: block; font-size: 0.85rem !important; }

.header-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn { background: #f0f2f5; border: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; position: relative; }
.cart-btn { background-color: #d9363e; color: #fff; }

.cart-icon-wrapper { position: relative; display: flex; align-items: center; }
.cart-svg { width: 26px; height: 26px; fill: #333; }
.cart-badge-count { position: absolute; top: -8px; right: -10px; background: #d9363e; color: #fff; font-size: 11px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Menu Mobile (Hamburger) */
.menu-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; order: -1; position: relative; z-index: 1005; }

@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    .nav-links { position: fixed; top: 0; left: -100%; width: 80%; height: 100vh; background: #fff; flex-direction: column; align-items: flex-start; padding: 80px 30px; transition: 0.4s; box-shadow: 10px 0 30px rgba(0,0,0,0.1); z-index: 1004; }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.2rem; width: 100%; padding: 15px 0; border-bottom: 1px solid #eee; }
    .dropdown-content { position: static; visibility: visible; opacity: 1; box-shadow: none; border: none; padding-left: 20px; display: none; }
    .dropdown.active .dropdown-content { display: block; }
}

/* ==========================================================================
   3. PANIER DÉROULANT (DROPDOWN)
   ========================================================================== */
.cart-dropdown { position: absolute; top: 60px; right: 0; width: 320px; background-color: #fff; border: 1px solid #eaeaea; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 1002; opacity: 0; visibility: hidden; transition: all 0.2s ease-in-out; transform: translateY(10px); }
.cart-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-body { padding: 20px; max-height: 350px; overflow-y: auto; }
.empty-cart-msg { text-align: center; color: #888; }
.cart-item { display: flex; gap: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; align-items: flex-start; }
.cart-item-remove { color: #999; font-size: 12px; cursor: pointer; border: 1px solid #ccc; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; margin-top: 5px; }
.cart-item-remove:hover { border-color: #d9363e; color: #d9363e; }
.cart-item-img { width: 60px; height: 60px; background-color: #eaeaea; flex-shrink: 0; border: 1px solid #eee; background-size: cover; background-position: center;}
.cart-item-info { flex-grow: 1; }
.cart-item-info h4 { font-size: 13px; margin: 0 0 5px 0; color: #555; font-weight: normal; line-height: 1.4; }
.cart-item-price-row { color: #888; font-size: 13px; }
.cart-item-price-val { color: #d9363e; font-weight: bold; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; background-color: #fcfcfc; display: none; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 15px; color: #555; }
.cart-subtotal span:last-child { color: #d9363e; font-weight: bold; font-size: 18px; }
.btn-checkout-dropdown { display: block; width: 100%; background-color: #d9363e; color: #fff; text-align: center; padding: 12px; text-decoration: none; font-size: 14px; font-weight: bold; transition: background-color 0.3s; margin-bottom: 10px; border: none; cursor: pointer; border-radius: 4px;}
.view-cart-link { display: block; text-align: center; font-size: 13px; color: #d9363e; text-decoration: none; }

/* ==========================================================================
   4. SECTIONS PAGE D'ACCUEIL (INDEX.HTML)
   ========================================================================== */
.hero-video-container { width: 100%; height: 75vh; background-color: #111; display: flex; align-items: flex-end; justify-content: flex-start; position: relative; overflow: hidden; }
.hero-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 80%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: left; color: white; padding-left: 5vw; padding-bottom: 5vh; max-width: 700px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-content h1 { font-size: 3rem; font-weight: 700; margin-bottom: 12px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); line-height: 1.1; }
.hero-content p { font-size: 1.15rem; margin-bottom: 25px; text-shadow: 1px 1px 4px rgba(0,0,0,0.6); opacity: 0.95; }
.hero-cta-btn { background-color: #e74c3c; color: white; padding: 14px 32px; border-radius: 30px; font-weight: bold; text-transform: uppercase; box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); }

.trust-badges { display: flex; justify-content: center; gap: 30px; padding: 20px 10px; background-color: #fff; border-bottom: 1px solid #eee; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 0.85rem; color: #555; max-width: 150px;}
.badge-icon { font-size: 1.8rem; display: block; margin-bottom: 5px; }

.promo-container { padding: 20px; max-width: 1200px; margin: 0 auto; }
.promo-banner { background-color: #e74c3c; color: white; text-align: center; padding: 20px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; aspect-ratio: 4 / 1;}

.bestsellers-section, .shop-section { max-width: 1200px; margin: 20px auto 40px auto; padding: 0 20px; }
.section-title, .category-title { font-size: 1.8rem; text-align: center; color: #2c3e50; border-bottom: 2px solid #e74c3c; display: inline-block; margin-bottom: 30px; padding-bottom: 5px; }
.category-title { font-size: 1.5rem; text-align: left; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.subcategories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-frame { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 25px; margin-bottom: 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

.product-card, .subcategory-card { background: #fff; border: 1px solid #eaeaea; border-radius: 8px; padding: 15px; text-align: center; transition: transform 0.2s; display: flex; flex-direction: column;}
.product-card:hover, .subcategory-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.product-img, .sub-image-placeholder { width: 100%; aspect-ratio: 1; background-color: #f4f4f4; border-radius: 6px; margin-bottom: 15px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.sub-image-placeholder { aspect-ratio: 4/3; color: white; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

.product-title { font-weight: 600; margin-bottom: 5px; font-size: 1.1rem; }
.product-desc { font-size: 0.85rem; color: #777; margin-bottom: 10px;}
.subcategory-name { padding: 15px; font-weight: 600; font-size: 1rem; color: #333; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.product-price { color: #e74c3c; font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; }
.btn-cart { background: #2c3e50; color: white; padding: 10px; display: block; border-radius: 4px; font-weight: bold; margin-top: auto;}

.bottom-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1200px; margin: 0 auto 40px auto; padding: 0 20px; }
.info-box { background: #fff; padding: 30px; border-radius: 8px; border: 1px solid #ddd; min-height: 250px; display: flex; flex-direction: column; justify-content: center;}

/* ==========================================================================
   5. CONFIGURATEUR PRODUIT (PAGES PRODUITS)
   ========================================================================== */
.main-wrapper { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.breadcrumb { font-size: 0.9rem; color: #888; margin-bottom: 20px; }
.product-container { background: #fff; padding: 30px; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);}
.gallery-container { display: flex; flex-direction: column; gap: 15px; }
.product-image { background-color: #eaeaea; border-radius: 8px; min-height: 450px; border: 1px solid #ddd; background-size: cover; background-position: center; transition: background-image 0.4s ease-in-out; }
.thumbnail-row { display: flex; gap: 10px; }
.thumb { width: 80px; height: 80px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; background-size: cover; background-position: center; transition: all 0.2s; background-color: #eee;}
.thumb.active, .thumb:hover { border-color: #d9363e; opacity: 0.8; }

.configurator { display: flex; flex-direction: column; gap: 20px; }
.config-header h1 { font-size: 2.2rem; color: #333; margin: 0 0 5px 0; }
.product-meta-container { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 10px; }
.product-meta { font-size: 0.9rem; color: #777; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;}
.stock-badge { color: #198754; font-weight: bold; background: #e8f5e9; padding: 5px 10px; border-radius: 20px; font-size: 0.85rem; }
.social-proof { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #d9363e; font-weight: 600; background: #fff0f0; padding: 8px 12px; border-radius: 4px; display: inline-flex; width: fit-content;}

.config-header .price { font-size: 1.8rem; color: #d9363e; font-weight: bold; margin-top: 10px;}
.config-group { border-bottom: 1px dashed #eee; padding-bottom: 15px; }
.config-label { font-weight: 600; margin-bottom: 10px; display: block; color: #333; }
.action-row { display: flex; gap: 15px; margin-top: 10px; align-items: stretch; }
.qty-selector { display: flex; align-items: center; border: 1px solid #ddd; background: #fff; border-radius: 4px; overflow: hidden;}
.qty-btn { background: #f8f9fa; border: none; padding: 0 15px; font-size: 1.2rem; cursor: pointer; color: #555; }
.qty-input { width: 50px; text-align: center; border: none; font-size: 1.1rem; font-weight: bold; color: #333; pointer-events: none; }
.add-to-cart { flex-grow: 1; background-color: #d9363e; color: white; border: none; padding: 15px; font-size: 1.1rem; font-weight: bold; cursor: pointer; border-radius: 4px;}
.trust-signals { display: flex; justify-content: space-between; margin-top: 15px; padding: 15px; background: #fbfbfb; border: 1px dashed #ddd; border-radius: 6px; font-size: 0.85rem; color: #555; }

.success-banner { background-color: #198754; color: #fff; padding: 15px 20px; font-size: 15px; margin-bottom: 25px; display: none; align-items: center; justify-content: space-between; border-radius: 6px; }
.success-banner.show { display: flex; }
.btn-view-cart-banner { background-color: #fff; color: #198754; padding: 8px 15px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 0.9rem; }

/* ==========================================================================
   6. ONGLETS (TABS)
   ========================================================================== */
.tabs-section { background: #fff; padding: 30px; border-radius: 12px; margin-bottom: 60px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.tab-headers { display: flex; border-bottom: 2px solid #eee; gap: 30px; margin-bottom: 30px; overflow-x: auto; white-space: nowrap;}
.tab-btn { background: none; border: none; font-size: 1.1rem; font-weight: bold; color: #888; padding: 10px 0; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: #d9363e; border-bottom-color: #d9363e; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tab-description { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.specs-list { list-style: none; padding: 0; }
.specs-list li { padding: 12px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; color: #555; }
.dimension-diagram { width: 100%; height: 250px; background-color: #f8f9fa; border: 1px dashed #ccc; display: flex; align-items: center; justify-content: center; color: #888; font-style: italic; border-radius: 8px; margin-top: 20px;}
.download-box { border: 1px solid #eee; padding: 30px; border-radius: 8px; text-align: center; background: #fafafa;}
.btn-download { display: inline-block; background: #333; color: #fff; padding: 12px 25px; border-radius: 4px; font-weight: bold; margin-top: 15px;}
.review-card { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }

/* ==========================================================================
   7. RELATED PRODUCTS & FOOTER FIX
   ========================================================================== */
.related-products { margin-bottom: 60px; }
.related-products h2 { text-align: center; margin-bottom: 30px; font-size: 2rem; color: #333; border-bottom: 2px solid #d9363e; display: inline-block; padding-bottom: 5px; position: relative; left: 50%; transform: translateX(-50%); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { background: #fff; border-radius: 8px; padding: 15px; text-align: center; border: 1px solid #eaeaea; transition: transform 0.2s ease, box-shadow 0.2s ease; display: block;}
.related-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.related-img { width: 100%; aspect-ratio: 1; background-color: #f4f4f4; background-size: cover; background-position: center; border-radius: 6px; margin-bottom: 15px; display:flex; align-items:center; justify-content:center; color:#888;}
.related-title { font-size: 1.1rem; color: #333; margin-bottom: 5px; }
.related-price { color: #d9363e; font-weight: bold; }

footer { background-color: #2c3e50; color: white; padding: 40px 20px 20px; margin-top: 80px; clear: both; display: block; width: 100%; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; gap: 20px; }
.footer-col { min-width: 250px; }
.footer-col h3 { margin-bottom: 15px; color: #e74c3c; }
.footer-col p, .footer-col a { margin-bottom: 8px; font-size: 0.95rem; color: #ddd; display: block; }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 20px; margin-top: 20px; font-size: 0.85rem; color: #aaa; }

/* ==========================================================================
   8. RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .subcategories-grid { grid-template-columns: 1fr; }
    .bottom-info { grid-template-columns: 1fr; }
    .hero-video-container { height: 60vh; }
    .trust-badges { flex-wrap: wrap; }
    .product-container, .tab-description { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .header-inner { padding: 5px 15px; }
    .logo img { height: 35px; }
} 

/* ==========================================================================
   9. PAGE PANIER (CART.HTML)
   ========================================================================== */
.page-title { font-size: 2.2rem; color: #333; margin-bottom: 30px; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.cart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.cart-items-container { background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); padding: 30px; }
.cart-headers { display: flex; justify-content: space-between; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; font-size: 0.9rem; color: #888; font-weight: 600; text-transform: uppercase; }
.col-product { flex-grow: 1; } .col-qty { width: 120px; text-align: center; } .col-total { width: 120px; text-align: right; }
.cart-row { display: flex; align-items: center; border-bottom: 1px solid #eee; padding: 20px 0; transition: background-color 0.2s; }
.cart-row:last-child { border-bottom: none; padding-bottom: 0; }
.item-remove { color: #ccc; font-size: 1.5rem; cursor: pointer; border: none; background: none; margin-right: 15px; transition: color 0.2s; padding: 5px; }
.item-remove:hover { color: #d9363e; }
.item-image { width: 90px; height: 90px; background-size: cover; background-position: center; border-radius: 8px; border: 1px solid #eee; margin-right: 20px; }
.item-details { flex-grow: 1; }
.item-title { font-size: 1.1rem; color: #333; font-weight: 600; margin-bottom: 5px; display: block; text-decoration: none;}
.item-title:hover { color: #d9363e; }
.item-meta { font-size: 0.85rem; color: #777; margin-bottom: 5px; }
.item-unit-price { font-size: 0.95rem; color: #555; }
.item-qty-control { display: flex; align-items: center; border: 1px solid #ddd; background: #fff; border-radius: 4px; overflow: hidden; width: max-content; margin: 0 auto; }
.item-row-total { width: 120px; text-align: right; font-weight: bold; font-size: 1.1rem; color: #d9363e; }

.coupon-section { margin-top: 30px; display: flex; gap: 10px; border-top: 1px dashed #eee; padding-top: 20px; }
.coupon-section input { padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.95rem; flex-grow: 1; max-width: 250px; }
.btn-coupon { background-color: #333; color: #fff; border: none; padding: 12px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: background 0.3s; }
.btn-coupon:hover { background-color: #111; }

.cart-summary { background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding: 30px; position: sticky; top: 100px; }
.cart-summary h2 { font-size: 1.4rem; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: #555; font-size: 1rem; }
.summary-row.shipping { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.summary-row.total { font-size: 1.4rem; font-weight: bold; color: #111; }
.total-price-val { color: #d9363e; }
.btn-checkout { display: block; width: 100%; background-color: #d9363e; color: #fff; text-align: center; padding: 16px; border-radius: 4px; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; border: none; cursor: pointer; transition: background 0.3s, transform 0.1s; margin-top: 20px; text-decoration: none; }
.btn-checkout:hover { background-color: #c92a31; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(217,54,62,0.3); }
.continue-shopping { display: block; text-align: center; margin-top: 15px; color: #888; font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.continue-shopping:hover { color: #333; text-decoration: underline; }

.empty-cart-view { text-align: center; padding: 60px 20px; display: none; }
.empty-cart-view h2 { color: #888; margin-bottom: 20px; }

@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } .cart-summary { position: static; } }
@media (max-width: 768px) {
    .cart-headers { display: none; } .cart-row { flex-wrap: wrap; position: relative; padding: 20px 0; }
    .item-image { width: 70px; height: 70px; margin-right: 15px; } .item-details { width: calc(100% - 130px); }
    .item-qty-control { margin: 15px 0 0 0; } .item-row-total { width: auto; position: absolute; bottom: 20px; right: 0; }
    .item-remove { position: absolute; top: 15px; right: 0; margin: 0; }
} 

/* ==========================================================================
   10. PAGE SUIVI DE COMMANDE (TRACKING.HTML)
   ========================================================================== */
.tracking-container { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.tracking-card { background-color: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #eaeaea; text-align: center; }
.tracking-card h1 { font-size: 28px; margin-bottom: 10px; color: #111; }
.subtitle { color: #666; margin-bottom: 30px; }

.tracking-form { display: flex; flex-direction: column; gap: 15px; max-width: 400px; margin: 0 auto; text-align: left; }
.tracking-form label { font-weight: 600; font-size: 14px; color: #444; }
.tracking-form input { width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; transition: border-color 0.3s; }
.tracking-form input:focus { border-color: #d9363e; outline: none; }

#tracking-result { display: none; margin-top: 40px; text-align: left; border-top: 2px dashed #eee; padding-top: 40px; }
.order-info-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: #fdfdfd; padding: 20px; border-radius: 8px; border: 1px solid #eee; }
.order-info-header h2 { margin: 0; color: #d9363e; font-size: 22px; }

.timeline { display: flex; justify-content: space-between; position: relative; margin-bottom: 40px; padding: 0 20px; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 40px; right: 40px; height: 3px; background: #eee; z-index: 1; }
.timeline-progress { position: absolute; top: 15px; left: 40px; height: 3px; background: #198754; z-index: 2; transition: width 1s ease; }
.step { position: relative; z-index: 3; text-align: center; width: 80px; }
.step-icon { width: 34px; height: 34px; background: #fff; border: 3px solid #eee; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #ccc; transition: all 0.3s; }
.step.active .step-icon { border-color: #198754; background: #198754; color: #fff; }
.step-text { font-size: 12px; font-weight: 600; color: #888; }
.step.active .step-text { color: #111; }

.item-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #eee; font-size: 15px; }

@media (max-width: 768px) { 
    .timeline { flex-direction: column; gap: 30px; padding: 0; } 
    .timeline::before, .timeline-progress { display: none; } 
    .step { width: 100%; display: flex; align-items: center; gap: 15px; text-align: left; } 
    .step-icon { margin: 0; } 
}

/* ==========================================================================
   11. FORCER LE DESIGN WOOCOMMERCE DE BASE
   ========================================================================== */
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
    background-color: #d9363e !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: bold !important;
    text-transform: uppercase;
}

.woocommerce #respond input#submit:hover, 
.woocommerce a.button:hover, 
.woocommerce button.button:hover, 
.woocommerce input.button:hover {
    background-color: #111 !important;
    color: #fff !important;
}

.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    color: #d9363e !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   12. LE CONFIGURATEUR HTML (CACHER WOOCOMMERCE & AFFICHER LES BOUTONS)
   ========================================================================== */

/* Cacher les menus déroulants natifs de WooCommerce (Force brute) */
.variations_form .variations select,
.woocommerce div.product form.cart .variations select {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    z-index: -9999 !important;
}

/* Style des labels au-dessus des boutons */
.woocommerce div.product form.variations_form table.variations th.label {
    padding: 0 0 10px 0 !important;
    text-align: left;
}
.woocommerce div.product form.variations_form table.variations label {
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    text-transform: none;
}

/* Le conteneur de tes boutons */
.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* Le style exact de TOUS tes boutons (100% visible, pas de grisage) */
.opt-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    opacity: 1 !important; /* Force l'opacité totale */
}

.opt-btn:hover {
    border-color: #333;
}

/* L'état actif (Le bouton Noir du prototype) */
.opt-btn.active {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #333 !important;
    font-weight: bold;
}

/* Enlever les marges inutiles des tableaux WooCommerce */
.woocommerce div.product form.variations_form table.variations td.value {
    padding-bottom: 15px;
}