/* ============================================================
   THÈME COULEURS — SOURCE UNIQUE DE VÉRITÉ
   ============================================================
   Pour changer les couleurs du site : modifiez UNIQUEMENT ce fichier.
   Chargé en dernier, il surcharge tout le reste.

   Palette :
   - Brun  #502013  : accent principal (boutons, liens, actifs)
   - Or    #d3ba1f  : accent secondaire (CTA sur sombre, promos, étoiles)
   - Vert  #05a42e  : succès (nouveau, stock, confirmations)
   - Rouge #e53e3e  : réservé prix promo barrés, erreurs, suppression
   ============================================================ */

:root {
    /* Accent principal — brun */
    --eco-accent: #6d28d9;
    --eco-accent-dark: #5b21b6;

    /* Accent secondaire — or */
    --eco-gold: #d3ba1f;
    --eco-gold-light: #e9d24a;

    /* Sémantique */
    --eco-success: #05a42e;

    /* Texte + fonds profonds */
    --eco-text: #3a150b;
    --eco-topbar-bg: #3a150b;
    --eco-deep: #3a150b;
    --eco-deep-2: #2b1108;
}

/* ============ HEADER ============ */
/* Texte doré sur la topbar brune */
.eco-topbar { color: var(--eco-gold-light); }
/* Barre dorée sous le menu */
.eco-nav { border-bottom: 3px solid var(--eco-gold); }

/* ============ HERO SLIDER ============ */
.eco-hero { background: var(--eco-deep); }
/* CTA doré sur l'image (fond sombre → bouton or, texte brun) */
.eco-hero-tag { background: var(--eco-gold) !important; color: #fff !important; }
.eco-hero-btn { background: var(--eco-gold) !important; color: #fff !important; }
.eco-hero-btn:hover { background: var(--eco-gold-light) !important; color: var(--eco-accent) !important; }

/* ============ RÉASSURANCE (variante claire) ============ */
.eco-reassurance-icon { background: rgba(80, 32, 19, .10); }

/* ============ RÉASSURANCE LARGE (fond sombre) ============ */
.eco-rea-wide { background: var(--eco-deep); }
.eco-rea-wide-icon { color: var(--eco-gold-light); }

/* ============ CATÉGORIES ============ */
.eco-cat-placeholder { background: linear-gradient(135deg, var(--eco-accent), var(--eco-accent-dark)); }

/* ============ BADGES PRODUITS ============ */
/* Promo : OR avec texte brun (plus lisible que rouge sur photo) */
.eco-pbadge--sale { background: var(--eco-gold) !important; color: var(--eco-accent) !important; }
.eco-pbadge--new { background: var(--eco-success) !important; }
/* Archive boutique : mêmes badges */
.eco-badge-sale { background: var(--eco-gold) !important; color: var(--eco-accent) !important; }
.eco-badge-new { background: var(--eco-success) !important; }
/* Fiche produit */
.single-product span.onsale.eco-onsale { background: var(--eco-gold) !important; color: var(--eco-accent) !important; }
/* Étoiles dorées */
.single-product .star-rating span::before { color: var(--eco-gold); }

/* ============ DEAL (bloc meilleure promo) ============ */
.eco-deal-card { background: linear-gradient(135deg, var(--eco-deep) 0%, var(--eco-accent) 100%); }
.eco-deal-percent { background: var(--eco-gold); color: var(--eco-accent); }
.eco-deal-tag { background: rgba(211,186,31,.16) !important; color: var(--eco-gold-light) !important; }
.eco-deal-price-new ins { color: var(--eco-gold-light); }
.eco-deal-title a:hover { color: var(--eco-gold-light); }
.eco-deal-save { background: rgba(5,164,46,.16); color: #7be095; }
.eco-deal-btn { background: var(--eco-gold) !important; color: var(--eco-accent) !important; }
.eco-deal-btn:hover { background: var(--eco-gold-light) !important; color: var(--eco-accent) !important; }

/* ============ À PROPOS ============ */
.eco-about-points svg { color: var(--eco-success); }

/* ============ FORMULAIRES (contact / vendeur) ============ */
.eco-cinfo-note { background: rgba(80,32,19,.06); border-color: rgba(80,32,19,.18); color: #5a3428; }
.eco-cinfo-note svg { color: var(--eco-accent); }
.eco-form-banner--ok { background: #e3f6e8; color: #047c22; border-color: #a9dfb6; }
.eco-vendor-cta { background: linear-gradient(135deg, var(--eco-deep) 0%, var(--eco-accent) 100%); }
.eco-vendor-cta-btn { background: var(--eco-gold) !important; color: var(--eco-accent) !important; }
.eco-vendor-cta-btn:hover { background: var(--eco-gold-light) !important; color: var(--eco-accent) !important; }

/* ============ FOOTER ============ */
.eco-footer { background: var(--eco-deep-2); }
.eco-footer-title::after { background: var(--eco-gold); }
.eco-footer-socials a:hover { background: var(--eco-gold); border-color: var(--eco-gold); color: #502013; }
.eco-newsletter-form button { background: var(--eco-gold); color: #502013; }
.eco-newsletter-form button:hover { background: var(--eco-gold-light); }

/* ============ HOVERS "ACCENT FONCÉ" (ex-bleu marine) ============ */
.eco-hero-btn:hover { background: var(--eco-gold-light); }
.eco-minicart .woocommerce-mini-cart__buttons .checkout:hover { background: var(--eco-accent-dark) !important; }
.cart_totals .checkout-button:hover { background: var(--eco-accent-dark) !important; }
#place_order:hover { background: var(--eco-accent-dark) !important; }
.eco-thanks-btn:hover { background: var(--eco-accent-dark); }
.eco-404-btn:hover { background: var(--eco-accent-dark); }
.dokan-dashboard a.dokan-btn-theme:hover,
body a.dokan-btn-theme:hover { background: var(--eco-accent-dark) !important; border-color: var(--eco-accent-dark) !important; }

/* ============ FOCUS (ombres de saisie) ============ */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-MyAccount-content .form-row input.input-text:focus,
.woocommerce-account:not(.logged-in) form.login input.input-text:focus,
.eco-404-search input:focus {
    box-shadow: 0 0 0 3px rgba(80,32,19,.14);
}

/* ============ MESSAGES / STATUTS DE SUCCÈS ============ */
.eco-shop .woocommerce-message { border-top-color: var(--eco-success); }
.single-product .stock.in-stock { color: var(--eco-success); }
.eco-thanks-check { background: var(--eco-success); box-shadow: 0 0 0 12px rgba(5,164,46,.14); }
/* Statuts de commande — Mon compte */
mark.order-status.status-completed span  { background: #e3f6e8; color: #047c22; }
mark.order-status.status-processing span { background: rgba(80,32,19,.08); color: #502013; }
/* Alertes Dokan */
.dokan-alert-success { background: #e3f6e8 !important; color: #047c22 !important; }

/* ============ DIVERS ============ */
/* Fonds actifs bleu clair → beige chaud */
.eco-cat-link.eco-current,
.woocommerce-MyAccount-navigation li.is-active a { background: rgba(80,32,19,.10); }
nav.woocommerce-pagination ul li a:hover { background: #f7efe9; }