
/* ===== THEMES ===== */

/* Theme par defaut : Prune & Dore */
:root {
    --primary: #4A1942;
    --primary-light: #6B2860;
    --primary-dark: #2E0F28;
    --accent: #E8C547;
    --accent-light: #F0D46A;
    --accent-dark: #C9A82E;
    --bg: #FDF8FF;
    --bg-section: #F5EFF8;
    --text: #1A0A18;
    --text-muted: #7A5C78;
    --white: #FFFFFF;
    --card-border: rgba(74,25,66,.12);
}

/* Theme Bleu nuit & Or */
[data-theme="bleu"] {
    --primary: #0D1B2A;
    --primary-light: #1A3245;
    --primary-dark: #060D15;
    --accent: #C9A84C;
    --accent-light: #D9BC6E;
    --accent-dark: #A8872E;
    --bg: #F5F8FF;
    --bg-section: #EBF0F8;
    --text: #0A1520;
    --text-muted: #4A6080;
    --white: #FFFFFF;
    --card-border: rgba(13,27,42,.12);
}

/* Theme Vert foret & Creme */
[data-theme="vert"] {
    --primary: #2D4A3E;
    --primary-light: #3D6455;
    --primary-dark: #1A2E26;
    --accent: #C8A96E;
    --accent-light: #D9BE8E;
    --accent-dark: #A88A4E;
    --bg: #F8F5F0;
    --bg-section: #EDE8E0;
    --text: #1A2E26;
    --text-muted: #5A7868;
    --white: #FFFDF8;
    --card-border: rgba(45,74,62,.12);
}

/* Theme Ardoise & Terracotta */
[data-theme="ardoise"] {
    --primary: #3D4F5C;
    --primary-light: #526878;
    --primary-dark: #263340;
    --accent: #C4622D;
    --accent-light: #D4784A;
    --accent-dark: #A44E20;
    --bg: #F8F6F4;
    --bg-section: #EDE9E5;
    --text: #1E2830;
    --text-muted: #5A6870;
    --white: #FFFFFF;
    --card-border: rgba(61,79,92,.12);
}
  /* Theme Orange & Blanc */
[data-theme="orange"] {
    --primary: #FF5B00;
    --primary-light: #ff6b35;
    --primary-dark: var(--accent-dark);
    --accent: #222;
    --accent-light: #FF5B00;
    --accent-dark: var(--accent);
    --bg: var(--accent-light);
    --bg-section: #ffffff;
    --text: #1E2830;
    --text-muted: #5A6870;
    --white: #FFFFFF;
    --card-border: rgb(61 79 92 / 18%);
}
    /* Theme Rouge & Noir */
[data-theme="rouge"] {
        --primary: #FF1F11;
        --primary-light: #ff6b35;
        --primary-dark: var(--accent-dark);
        --accent: #222;
        --accent-light: #FF1F11;
        --accent-dark: var(--accent);
        --bg: var(--accent-light);
        --bg-section: #040000;
        --text: #1E2830;
        --text-muted: #5A6870;
        --white: #FFFFFF;
        --card-border: rgb(61 79 92 / 18%);
}

/* ===== APPLICATION DU THEME ===== */
body {
    background: var(--bg);
    color: var(--text);
}

/* Header */
header {
    background: var(--primary);
    border-bottom: 2px solid var(--accent);
}
.logo a { color: var(--white) !important; }
.logo span { color: var(--accent) !important; }
nav a { color: rgba(255,255,255,.8) !important; }
nav a:hover { color: var(--accent) !important; }

/* Boutons */
.btn-primary {
    background: var(--accent) !important;
    color: var(--primary) !important;
    font-weight: 700;
}
.btn-primary:hover { background: var(--accent-light) !important; }
.btn-outline {
    border: 2px solid var(--accent) !important;
    color: var(--accent) !important;
    background: transparent !important;
}
.btn-outline:hover {
    background: var(--accent) !important;
    color: var(--primary) !important;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
}
.hero h1 { color: var(--white) !important; }
.hero p { color: rgba(255,255,255,.8) !important; }
.stat strong { color: var(--accent) !important; }
.stat span { color: rgba(255,255,255,.6) !important; }

/* Categories */
.categories-section { background: var(--bg-section) !important; }
.cat-card { border-color: var(--card-border) !important; background: var(--white) !important; }
.cat-card:hover { border-color: var(--accent) !important; }
.cat-card i { color: var(--accent) !important; }

/* Produits */
.boutique-card { background: var(--white) !important; border-color: var(--card-border) !important; }
.boutiques-section h2 { color: var(--text) !important; }

/* How it works */
.how-it-works { background: var(--bg-section) !important; }
.step-icon { background: var(--primary) !important; }
.step-icon i { color: var(--accent) !important; }

/* CTA artisan */
.artisan-cta { background: var(--primary) !important; }
.artisan-cta .btn-primary { background: var(--accent) !important; color: var(--primary) !important; }

/* Footer */
footer { background: var(--primary-dark) !important; }
footer h4 { color: var(--accent) !important; }
footer a:hover { color: var(--accent) !important; }

/* Prix */
.produit-prix, .prix { color: var(--accent) !important; }

/* Boutons dans les cards */
.btn-acheter, .btn-commander { background: var(--accent) !important; color: var(--primary) !important; }
.btn-acheter:hover, .btn-commander:hover { background: var(--accent-light) !important; }
.btn-boutique { border-color: var(--accent) !important; color: var(--accent) !important; }
.btn-boutique:hover { background: var(--accent) !important; color: var(--primary) !important; }

/* Sidebar artisan */
.sidebar { background: var(--primary-dark) !important; }
.sidebar-logo span { color: var(--accent) !important; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: rgba(232,197,71,.1) !important; color: var(--accent) !important; }

/* Formulaires */
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent) !important;
}
.btn-submit, .btn-login { background: var(--accent) !important; color: var(--primary) !important; }
.btn-submit:hover, .btn-login:hover { background: var(--accent-light) !important; }

/* Section title artisan */
.section-title { color: var(--accent) !important; border-bottom-color: rgba(232,197,71,.2) !important; }

/* ===== SELECTEUR DE THEME ===== */
.theme-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.theme-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    transition: transform .2s;
}
.theme-toggle-btn:hover { transform: scale(1.1); }
.theme-panel {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    width: 200px;
    border: 1px solid var(--card-border);
}
.theme-panel.open { display: block; }
.theme-panel h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    text-align: center;
}
.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
    margin-bottom: 4px;
}
.theme-option:hover { background: var(--bg-section); }
.theme-option.active { background: var(--bg-section); font-weight: 600; }
.theme-colors {
    display: flex;
    gap: 3px;
}
.theme-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.1);
}
.theme-name { font-size: 12px; color: var(--text); }
