import SwiftUI // Identité Groupe KA (mêmes valeurs que l'app web) enum Ka { static let bg = Color(hex: 0xF2F1EC) static let card = Color(hex: 0xFCFBF8) static let ink = Color(hex: 0x1A1611) static let orange = Color(hex: 0xF97316) static let muted = Color(hex: 0x6D675C) static let url = URL(string: "https://www.administration-ka.com")! } extension Color { init(hex: UInt, alpha: Double = 1) { self.init( .sRGB, red: Double((hex >> 16) & 0xff) / 255, green: Double((hex >> 8) & 0xff) / 255, blue: Double(hex & 0xff) / 255, opacity: alpha ) } } // Pastille « Ka » réutilisable (splash + états) struct KaMark: View { var size: CGFloat = 84 var body: some View { RoundedRectangle(cornerRadius: size * 0.28, style: .continuous) .fill(Ka.orange) .overlay( RoundedRectangle(cornerRadius: size * 0.28, style: .continuous) .strokeBorder(Ka.ink, lineWidth: max(2, size * 0.035)) ) .overlay( Text("Ka") .font(.system(size: size * 0.42, weight: .heavy, design: .rounded)) .foregroundColor(Ka.ink) ) .frame(width: size, height: size) .shadow(color: Ka.ink.opacity(0.18), radius: 0, x: size * 0.05, y: size * 0.05) } }