/* ===========================================
   DESIGN SYSTEM MIXTE - منصة الإرتقاء
   Combine: Moderne + Design Approuvé par Admins
   =========================================== */

:root {
  /* Couleurs du design approuvé */
  --gold-primary: #deb657;
  --gold-dark: #b5974f;
  --blue-dark: #0a2d4d;
  --blue-primary: #00639b;
  --blue-light: #017bff;
  --success-green: #146c43;
  
  /* Couleurs modernes */
  --white: #FEFEFE;
  --light-beige: #8E9F94;
  --dark-teal: #145253;
  
  /* Couleurs fonctionnelles */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  
  /* Dégradés mixtes */
  --gradient-primary: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  --gradient-mixed: linear-gradient(135deg, var(--blue-primary) 0%, var(--gold-primary) 100%);
  --gradient-light: linear-gradient(135deg, var(--white) 0%, #F8FAFC 100%);
  --gradient-dark: linear-gradient(135deg, #001f3f 0%, #003366 100%);
  
  /* Typographie mixte */
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
  --font-alexandria: 'Alexandria', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Bordures & Ombres - Style mixte */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 50px;
  
  --shadow-sm: 0 2px 8px rgba(0, 99, 155, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 99, 155, 0.15);
  --shadow-lg: 0 8px 40px rgba(0, 99, 155, 0.2);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================================
   RESET & BASE STYLES
   =========================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  line-height: 1.6;
  color: #1E293B;
  direction: rtl;
  text-align: right;
}

/* ===========================================
   NAVIGATION MIXTE (Style ancien + moderne)
   =========================================== */

.mixed-navbar {
  background: transparent;
  padding: 0.5rem 0;
  direction: rtl;
  font-family: var(--font-alexandria);
}

.mixed-navbar .navbar-brand {
  width: 98px;
  height: 88px;
  background: var(--white);
  border-radius: 24px 0 0 24px;
  padding: 8px;
  margin-left: 2rem;
  position: relative;
  transition: var(--transition);
}

.mixed-navbar .navbar-brand:hover {
  transform: scale(1.05);
}

.mixed-navbar .navbar-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

.mixed-navbar .navbar-nav {
  background: var(--gold-primary);
  padding: 0.7rem;
  border-radius: 25px 8px 8px 25px;
  gap: 0.5rem;
  display: flex;
  align-items: center;
}

.mixed-navbar .nav-link {
  border: 2px solid var(--white);
  border-radius: 41px;
  padding: 0.5rem 1.5rem !important;
  background: var(--blue-primary);
  color: var(--white) !important;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-alexandria);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.mixed-navbar .nav-link:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mixed-navbar .nav-link.active {
  background: var(--blue-dark);
  border-color: var(--gold-primary);
}

.mixed-navbar .nav-link i {
  margin-left: 0.5rem;
}

/* Liens d'authentification */
.mixed-navbar .nav-link.auth-link {
  background: var(--gold-primary);
  color: var(--blue-dark) !important;
  border: 2px solid var(--blue-dark) !important;
}

.mixed-navbar .nav-link.auth-link:hover {
  background: var(--blue-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.mixed-navbar .nav-link.auth-link.login {
  background: transparent;
  border-color: var(--blue-primary);
  color: var(--blue-primary) !important;
}

.mixed-navbar .nav-link.auth-link.login:hover {
  background: var(--blue-primary);
  color: var(--white) !important;
}

/* Dropdown mixte */
.mixed-dropdown {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(222, 182, 87, 0.2);
  background: var(--white);
}

.mixed-dropdown .dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin: 0.1rem 0.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  font-family: var(--font-alexandria);
}

.mixed-dropdown .dropdown-item:hover {
  background: rgba(0, 99, 155, 0.1);
  transform: translateX(-5px);
}

.mixed-dropdown .dropdown-item i {
  width: 20px;
  margin-left: 0.5rem;
}

/* Badge de notification */
.mixed-badge {
  background: var(--danger) !important;
  border: 2px solid var(--white);
  animation: pulse 2s infinite;
}

/* Lien utilisateur */
.user-dropdown-link {
  background: transparent !important;
  border: 2px solid var(--gold-primary) !important;
  color: var(--blue-dark) !important;
}

.user-dropdown-link:hover {
  background: var(--gold-primary) !important;
  color: var(--blue-dark) !important;
}

/* ===========================================
   COMPOSANTS MIXTES RÉUTILISABLES
   =========================================== */

/* Cartes avec style mixte */
.mixed-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(222, 182, 87, 0.2);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.mixed-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-mixed);
}

.mixed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(222, 182, 87, 0.4);
}

/* Boutons mixtes */
.btn-mixed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-alexandria);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-mixed-primary {
  background: var(--gradient-primary);
  color: var(--white);
}

.btn-mixed-gold {
  background: var(--gradient-gold);
  color: var(--blue-dark);
}

.btn-mixed-success {
  background: var(--success-green);
  color: var(--white);
  border-radius: var(--radius-sm);
}

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

.btn-mixed:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-mixed-primary:hover {
  background: var(--blue-dark);
}

.btn-mixed-gold:hover {
  background: var(--gold-dark);
}

.btn-mixed-success:hover {
  background: #0f5132;
}

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

/* Badges mixtes */
.badge-mixed {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-alexandria);
}

.badge-gold {
  background: var(--gradient-gold);
  color: var(--blue-dark);
}

.badge-blue {
  background: var(--gradient-primary);
  color: var(--white);
}

/* ===========================================
   FORMULAIRES MIXTES
   =========================================== */

.mixed-form-group {
  margin-bottom: var(--space-md);
}

.mixed-form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--blue-primary);
  font-family: var(--font-alexandria);
}

.mixed-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0, 99, 155, 0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.mixed-form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 99, 155, 0.1);
}

/* Groupes spécifiques */
.mixed-phone-group {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.mixed-country-select {
  width: 120px;
  flex-shrink: 0;
  background: var(--gold-primary);
  border: 2px solid var(--blue-primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--blue-dark);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ===========================================
   FOOTER MIXTE
   =========================================== */

.mixed-footer {
  background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  position: relative;
  overflow: hidden;
  font-family: var(--font-arabic);
}

.mixed-footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--blue-primary));
}

.mixed-footer-content {
  position: relative;
  z-index: 1;
}

.mixed-footer .footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 2px solid var(--gold-primary);
  object-fit: cover;
}

.mixed-footer .brand-info h3 {
  color: var(--gold-primary);
  font-family: var(--font-alexandria);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
}

.mixed-footer .brand-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.mixed-footer .footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 1rem;
}

.mixed-footer .link-group h4 {
  color: var(--gold-primary);
  font-family: var(--font-alexandria);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  position: relative;
}

.mixed-footer .link-group h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-primary);
}

.mixed-footer .link-group a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.5rem;
}

.mixed-footer .link-group a:hover {
  color: var(--gold-primary);
  padding-right: 8px;
}

.mixed-footer .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(222, 182, 87, 0.1);
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition);
}

.mixed-footer .social-link:hover {
  background: var(--gold-primary);
  color: var(--blue-dark);
  transform: translateY(-3px);
}

.mixed-footer .copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===========================================
   ANIMATIONS & ÉTATS
   =========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-slideIn {
  animation: slideInRight 0.5s ease forwards;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
  .mixed-navbar .navbar-brand {
    margin-left: 1rem;
    width: 80px;
    height: 70px;
  }

  .mixed-navbar .navbar-nav {
    border-radius: 15px;
    padding: 0.5rem;
    margin-top: 1rem;
  }

  .mixed-navbar .nav-link {
    padding: 0.4rem 1rem !important;
    font-size: 0.9rem;
  }

  .mixed-dropdown {
    position: fixed !important;
    top: 80px !important;
    left: 50% !important;
    transform: translateX(50%) !important;
    width: 90% !important;
  }

  .mixed-footer {
    padding: 2rem 0 1rem;
  }

  .mixed-phone-group {
    flex-direction: column;
  }

  .mixed-country-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
  }

  .mixed-navbar .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .mixed-navbar .nav-link {
    justify-content: center;
    text-align: center;
  }
}

/* ===========================================
   UTILITAIRES MIXTES
   =========================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }