/*
 * ======================================
 * 🎨 KODPWOMO - PALETTE OFFICIELLE
 * ======================================
 * Palette de couleurs or et vert pour la livraison campus-to-campus
 * Identité visuelle: Or premium & Vert nature
 * Plateforme: kodPwomo - Livraison Étudiante en Haïti
 * Mise à jour: Décembre 2025
 */

/* =====================================
   🎯 VARIABLES CSS - COULEURS PRINCIPALES
   ===================================== */
:root {
  /* === PALETTE PRINCIPALE === */
  --primary: #f7b642;           /* Or/Jaune - Actions principales & identité */
  --secondary: #27ae60;         /* Vert nature - Succès & validation */
  --accent: #e19627;            /* Or foncé - Accents & hover */
  --success: #27ae60;           /* Vert - Succès/Validations */
  --warning: #f39c12;           /* Orange - Alertes/Notifications */
  
  /* === NUANCES ET VARIATIONS === */
  --primary-light: #f9c76a;     /* Or clair */
  --primary-dark: #e19627;      /* Or foncé */
  --secondary-light: #2ecc71;   /* Vert clair */
  --secondary-dark: #229954;    /* Vert foncé */
  
  /* === COULEURS NEUTRES === */
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --medium-gray: #666666;
  --dark-gray: #1A1A1A;
  --black: #000000;
  
  /* === COULEURS FONCTIONNELLES === */
  --error: #e74c3c;            /* Rouge erreur */
  --info: #3498db;             /* Bleu information */
  --disabled: #BDC3C7;         /* Gris désactivé */
  
  /* === TRANSPARENCES === */
  --primary-alpha-10: rgba(247, 182, 66, 0.1);
  --primary-alpha-20: rgba(247, 182, 66, 0.2);
  --secondary-alpha-10: rgba(39, 174, 96, 0.1);
  --secondary-alpha-20: rgba(39, 174, 96, 0.2);
  
  /* === NEUMORPHISM / 3D SHADOWS === */
  --shadow-3d-base: 8px 8px 20px rgba(0, 0, 0, 0.10), -8px -8px 20px rgba(255, 255, 255, 0.70);
  --shadow-3d-hover: 16px 16px 32px rgba(0, 0, 0, 0.12), -16px -16px 32px rgba(255, 255, 255, 0.80);
  --shadow-3d-active: 6px 6px 16px rgba(0, 0, 0, 0.08), -6px -6px 16px rgba(255, 255, 255, 0.65);
}

/* =====================================
   🌈 GRADIENTS PRÉDÉFINIS
   ===================================== */
:root {
  --gradient-primary: linear-gradient(135deg, #f7b642 0%, #e19627 100%);
  --gradient-warm: linear-gradient(135deg, #f7b642 0%, #f39c12 100%);
  --gradient-cool: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  --gradient-success: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(247, 182, 66, 0.9) 0%, rgba(39, 174, 96, 0.9) 100%);
}

/* =====================================
   🎨 CLASSES UTILITAIRES - COULEURS DE TEXTE
   ===================================== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-error { color: var(--error) !important; }
.text-white { color: var(--white) !important; }
.text-dark { color: var(--dark-gray) !important; }
.text-muted { color: var(--medium-gray) !important; }

/* =====================================
   🎨 CLASSES UTILITAIRES - ARRIÈRE-PLANS
   ===================================== */
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-error { background-color: var(--error) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-light { background-color: var(--light-gray) !important; }

/* Arrière-plans avec transparence */
.bg-primary-light { background-color: var(--primary-alpha-10) !important; }
.bg-secondary-light { background-color: var(--secondary-alpha-10) !important; }

/* Gradients */
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-warm { background: var(--gradient-warm) !important; }
.bg-gradient-cool { background: var(--gradient-cool) !important; }
.bg-gradient-success { background: var(--gradient-success) !important; }

/* =====================================
   🔘 BOUTONS KODPWOMO
   ===================================== */
.btn-kodpwomo {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(247, 182, 66, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 182, 66, 0.6);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/* =====================================
   📦 COMPOSANTS SPÉCIAUX KODPWOMO
   ===================================== */

/* Card produit/université */
.kodpwomo-card {
  background: rgba(255,255,255,0.92);
  border-radius: 15px;
  box-shadow: var(--shadow-3d-base);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  backdrop-filter: blur(14px);
}

.kodpwomo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3d-hover);
}

/* Status Agent */
.agent-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.agent-available { 
  background: var(--success); 
  color: var(--white); 
}

.agent-busy { 
  background: var(--warning); 
  color: var(--dark-gray); 
}

.agent-offline { 
  background: var(--disabled); 
  color: var(--white); 
}

/* Notification Badge */
.notification-badge {
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: -8px;
  right: -8px;
}

/* Progress Bar */
.progress-kodpwomo {
  background: var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
  height: 8px;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

/* =====================================
   📱 RESPONSIVE UTILITIES
   ===================================== */
@media (max-width: 768px) {
  .btn-kodpwomo {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .kodpwomo-card {
    border-left: 3px solid var(--primary);
  }
}

/* =====================================
   🎯 CLASSES SPÉCIFIQUES WORKFLOW
   ===================================== */

/* Zone Université */
.university-zone {
  border-left: 4px solid var(--primary);
  background: var(--primary-alpha-10);
}

/* Zone Commande */
.order-zone {
  border-left: 4px solid var(--primary);
  background: var(--primary-alpha-10);
}

/* Zone Agent */
.agent-zone {
  border-left: 4px solid var(--secondary);
  background: var(--secondary-alpha-10);
}

/* Zone Succès */
.success-zone {
  border-left: 4px solid var(--success);
  background: var(--secondary-alpha-10);
}

/* =====================================
   🔧 DEBUG - REMOVE IN PRODUCTION
   ===================================== */
.debug-primary { background: var(--primary) !important; color: white; }
.debug-secondary { background: var(--secondary) !important; color: white; }
.debug-accent { background: var(--accent) !important; color: white; }
.debug-success { background: var(--success) !important; color: white; }
.debug-warning { background: var(--warning) !important; color: white; }

/* 
 * ======================================
 * 🚀 USAGE EXAMPLES
 * ======================================
 * 
 * HTML Examples:
 * 
 * <!-- Bouton Commander -->
 * <button class="btn-kodpwomo btn-primary">🛒 Commander Maintenant</button>
 * 
 * <!-- Card Université -->
 * <div class="kodpwomo-card university-zone">
 *   <h3 class="text-primary">Université d'État d'Haïti</h3>
 * </div>
 * 
 * <!-- Status Agent -->
 * <span class="agent-status agent-available">Disponible</span>
 * 
 * <!-- Zone Workflow -->
 * <section class="order-zone">Passez votre commande</section>
 * 
 * <!-- Gradient Background -->
 * <div class="bg-gradient-primary">Contenu avec gradient or</div>
 * 
 */
