:root {
    --bg: #f0f2f5;
    --surface: #ffffff;
    --primary: #4f46e5;
    --secondary: #0891b2;
    --text-main: #1e293b;
    --border: #cbd5e1;
    
    /* Couleurs des catégories */
    --c-poly: #6366f1;    /* Indigo */
    --c-jambes: #ef4444;  /* Rouge */
    --c-pecs: #3b82f6;    /* Bleu */
    --c-dos: #1e40af;     /* Marine */
    --c-epaules: #f59e0b; /* Orange */
    --c-triceps: #a855f7; /* Violet */
    --c-biceps: #ec4899;  /* Rose */
    --c-abdos: #10b981;   /* Vert */
    --c-none: #94a3b8;    /* Gris */
}

body {
    background-color: var(--bg) !important;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container { width: 100%; max-width: 500px; }

.section-box {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

/* --- LE FIX EST ICI --- */
.badge {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    margin: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white !important; /* Texte blanc forcé */
    cursor: grab;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* On définit chaque couleur SANS !important sur la base pour qu'elles gagnent */
.cat-poly { background-color: var(--c-poly) !important; }
.cat-jambes { background-color: var(--c-jambes) !important; }
.cat-pecs { background-color: var(--c-pecs) !important; }
.cat-dos { background-color: var(--c-dos) !important; }
.cat-epaules { background-color: var(--c-epaules) !important; }
.cat-triceps { background-color: var(--c-triceps) !important; }
.cat-biceps { background-color: var(--c-biceps) !important; }
.cat-abdos { background-color: var(--c-abdos) !important; }
.cat-none { background-color: var(--c-none) !important; }

/* Reste du style */
.drop-area { background-color: #e2e8f0; border: 2px dashed var(--primary); min-height: 100px; border-radius: 12px; padding: 10px; }
.planned-row { background: white; padding: 12px; border-radius: 10px; margin-bottom: 8px; display: flex; justify-content: space-between; border: 1px solid var(--border); }
.main-btn { background: var(--primary); color: white; border: none; padding: 15px; border-radius: 12px; font-weight: bold; width: 100%; cursor: pointer; }