local AddonName, Kz = ...
_G[AddonName] = Kz

-- --- CONFIGURATION GLOBALE ---
Kz.DefaultDB = {
    locked = false,
    opacity = 0.95,
    fontSize = 12,
    point = "CENTER", relativePoint = "CENTER", x = 0, y = 0,
    records = {},
    font = "Boris Black Bloxx",
    theme = "Theme_Alleria"
}

Kz.DefaultCharRecord = {
    damage = { amount = 0, spellName = "Aucun", icon = 134400, target = "Personne", date = "-" },
    heal = { amount = 0, spellName = "Aucun", icon = 134400, target = "Personne", date = "-" }
}

Kz.ThemeList = {
    { name = "Alleria",     file = "Theme_Alleria" },
    { name = "Arthas",      file = "Theme_Arthas" },
    { name = "Druide",      file = "Theme_Druide1" },
    { name = "Gul'dan",     file = "Theme_Gul'dan" },
    { name = "Illidan",     file = "Theme_Illidan" },
    { name = "Malfurion",   file = "Theme_Malfurion" },
    { name = "Sushys",      file = "Theme_Sushys" },
    { name = "Tyrande",     file = "Theme_Tyrande" },
    { name = "Uther",       file = "Theme_Uther" },
	{ name = "Jaina",       file = "Theme_Jaina" },
	{ name = "Khadgar",       file = "Theme_Khadgar" },
}

-- Stockage des références UI
Kz.UI = { 
    Main = nil, Views = {}, Tabs = {}, 
    StatGroups = {}, RepGroups = {}, CurGroups = {}, RaidLines = {}, SocialLines = {}, GuildLines = {}
}

-- IDs des slots d'équipement
Kz.SlotIDs = {
    Left = {1, 2, 3, 15, 5, 4, 19, 9, 16},
    Right = {10, 6, 7, 8, 11, 12, 13, 14, 17}
}

-- Couleur de classe
local _, playerClass = UnitClass("player")
Kz.ClassColor = C_ClassColor.GetClassColor(playerClass) or CreateColor(1, 1, 1, 1)
Kz.CharKey = UnitName("player") .. "-" .. GetRealmName()