/* ========================================
   COMPOSANTS CARTES MODERNES 2025
   Ombres colorées et effets 3D
   ======================================== */

/* === CARTES DE BASE === */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--color-surface);
  background-clip: border-box;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-200);
}

/* === HEADERS DE CARTES === */
.card-header {
  padding: var(--space-6);
  background: var(--gradient-bg-primary);
  border-bottom: 1px solid var(--color-border);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  position: relative;
}

.card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
  margin: 0;
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

/* === CORPS DE CARTES === */
.card-body {
  flex: 1 1 auto;
  padding: var(--space-6);
  color: var(--color-text);
}

.card-body:last-child {
  border-bottom-right-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
}

/* === FOOTERS DE CARTES === */
.card-footer {
  padding: var(--space-6);
  background: var(--color-surface-hover);
  border-top: 1px solid var(--color-border);
  border-bottom-right-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
}

/* === CARTES COLORÉES === */
.card-primary {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-primary);
}

.card-primary .card-header {
  background: var(--gradient-primary);
  color: var(--color-text-on-primary);
  border-bottom-color: var(--color-primary-300);
}

.card-primary:hover {
  box-shadow: var(--shadow-primary), var(--shadow-xl);
}

.card-secondary {
  border-color: var(--color-secondary-200);
  box-shadow: var(--shadow-secondary);
}

.card-secondary .card-header {
  background: var(--gradient-secondary);
  color: var(--color-text-on-primary);
  border-bottom-color: var(--color-secondary-300);
}

.card-secondary:hover {
  box-shadow: var(--shadow-secondary), var(--shadow-xl);
}

.card-accent {
  border-color: var(--color-accent-200);
  box-shadow: var(--shadow-accent);
}

.card-accent .card-header {
  background: var(--gradient-accent);
  color: var(--color-text-on-primary);
  border-bottom-color: var(--color-accent-300);
}

.card-accent:hover {
  box-shadow: var(--shadow-accent), var(--shadow-xl);
}

.card-success {
  border-color: var(--color-success-200);
  box-shadow: var(--shadow-success);
}

.card-success .card-header {
  background: var(--gradient-success);
  color: var(--color-text-on-primary);
  border-bottom-color: var(--color-success-300);
}

.card-success:hover {
  box-shadow: var(--shadow-success), var(--shadow-xl);
}

.card-danger {
  border-color: var(--color-danger-200);
  box-shadow: var(--shadow-danger);
}

.card-danger .card-header {
  background: var(--gradient-danger);
  color: var(--color-text-on-primary);
  border-bottom-color: var(--color-danger-300);
}

.card-danger:hover {
  box-shadow: var(--shadow-danger), var(--shadow-xl);
}

.card-warning {
  border-color: var(--color-warning-200);
  box-shadow: var(--shadow-warning);
}

.card-warning .card-header {
  background: var(--gradient-warning);
  color: var(--color-text);
  border-bottom-color: var(--color-warning-300);
}

.card-warning:hover {
  box-shadow: var(--shadow-warning), var(--shadow-xl);
}

.card-info {
  border-color: var(--color-info-200);
  box-shadow: var(--shadow-info);
}

.card-info .card-header {
  background: var(--gradient-info);
  color: var(--color-text-on-primary);
  border-bottom-color: var(--color-info-300);
}

.card-info:hover {
  box-shadow: var(--shadow-info), var(--shadow-xl);
}

/* === CARTES GLASSMORPHISM === */
.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* === CARTES GRADIENT === */
.card-gradient {
  background: var(--gradient-bg-primary);
  border: none;
  position: relative;
}

.card-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
  border-radius: var(--radius-xl);
}

.card-gradient:hover::before {
  opacity: 0.1;
}

/* === CARTES FLOTTANTES === */
.card-floating {
  position: relative;
  overflow: visible;
}

.card-floating::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-floating:hover::before {
  opacity: 1;
}

/* === CARTES STATISTIQUES === */
.stat-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  color: var(--color-text);
  line-height: var(--line-height-none);
}

.stat-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === CARTES D'ACTIVITÉ === */
.activity-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.activity-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.activity-time {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

.activity-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: var(--space-2) 0;
}

.activity-description {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

/* === CARTES DE PRODUIT === */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-content {
  padding: var(--space-6);
}

.product-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.product-price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.product-description {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

/* === CARTES DE NOTIFICATION === */
.notification-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  border-left: 4px solid var(--color-primary);
}

.notification-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.notification-card.success {
  border-left-color: var(--color-success);
}

.notification-card.warning {
  border-left-color: var(--color-warning);
}

.notification-card.danger {
  border-left-color: var(--color-danger);
}

.notification-card.info {
  border-left-color: var(--color-info);
}

/* === CARTES DE TABLEAU DE BORD === */
.dashboard-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.dashboard-card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-primary);
  font-size: var(--font-size-xl);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .card,
  .stat-card,
  .activity-card,
  .product-card,
  .notification-card,
  .dashboard-card {
    margin-bottom: var(--space-4);
  }
  
  .card-header,
  .card-body,
  .card-footer {
    padding: var(--space-4);
  }
  
  .stat-card,
  .dashboard-card {
    padding: var(--space-4);
  }
  
  .stat-icon {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: var(--font-size-2xl);
  }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
  .card,
  .stat-card,
  .activity-card,
  .product-card,
  .notification-card,
  .dashboard-card {
    transition: none;
  }
  
  .card:hover,
  .stat-card:hover,
  .activity-card:hover,
  .product-card:hover,
  .notification-card:hover,
  .dashboard-card:hover {
    transform: none;
  }
  
  .stat-icon,
  .product-image {
    transition: none;
  }
  
  .stat-card:hover .stat-icon,
  .product-card:hover .product-image {
    transform: none;
  }
}

/* === ANIMATIONS D'ENTRÉE === */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.stat-card,
.activity-card,
.product-card,
.notification-card,
.dashboard-card {
  animation: slideInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   ÉTAT VIDE MODERNE 2025 - COMMERCIAL
   Design split-screen avec glassmorphism
   ======================================== */

.empty-state-split {
  min-height: calc(100vh - 200px);
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

.empty-state-split::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.empty-state-split .row {
  position: relative;
  z-index: 1;
}

.min-vh-75 {
  min-height: 75vh;
}

/* === CONTENU GLASSMORPHISM === */
.empty-content-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-3xl);
  padding: var(--space-10) var(--space-8);
  margin: var(--space-6);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.empty-content-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
}

.theme-dark .empty-content-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .empty-content-glass::before {
  opacity: 0.8;
}

/* === BARRE DE PROGRESSION === */
.progress-badge-wrapper {
  margin-bottom: var(--space-6);
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-primary);
  margin-bottom: var(--space-3);
}

.progress-badge-text {
  color: var(--color-text-on-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.progress-badge-text i {
  font-size: var(--font-size-base);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
  animation: progressFill 1.5s ease-out;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 90%; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* === ILLUSTRATION SVG === */
.empty-illustration-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  position: relative;
  min-height: 500px;
}

.dashboard-illustration {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.2));
  animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.dashboard-illustration .person {
  animation: personPulse 3s ease-in-out infinite;
}

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

.dashboard-illustration .dashboard {
  animation: dashboardFloat 4s ease-in-out infinite;
}

@keyframes dashboardFloat {
  0%, 100% { transform: translate(100, 280) translateY(0px); }
  50% { transform: translate(100, 280) translateY(-10px); }
}

/* === TITRE ET DESCRIPTION === */
.empty-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: var(--line-height-tight);
  text-align: left;
}

.empty-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
  text-align: left;
}

.empty-state-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  animation: rotateGradient 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* === POINTS DE VALEUR === */
.empty-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--gradient-bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.theme-dark .empty-benefits {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-align: left;
  transition: transform var(--transition-base);
}

.benefit-item:hover {
  transform: translateX(4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-primary);
  font-size: 1.25rem;
  box-shadow: var(--shadow-primary);
  flex-shrink: 0;
}

.benefit-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.benefit-text strong {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  display: block;
}

.benefit-text span {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* === CTA === */
.empty-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.empty-cta .btn {
  font-size: var(--font-size-lg);
  padding: 1.25rem 3rem;
  min-height: 64px;
  box-shadow: 
    var(--shadow-primary),
    0 10px 40px rgba(79, 70, 229, 0.3);
  position: relative;
  overflow: hidden;
}

.empty-cta .btn:hover {
  transform: translateY(-4px);
  box-shadow: 
    var(--shadow-primary),
    0 15px 50px rgba(79, 70, 229, 0.4);
}

.empty-cta .btn i.fa-arrow-right {
  transition: transform var(--transition-base);
}

.empty-cta .btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}

.empty-cta-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.empty-cta-hint i {
  color: var(--color-primary);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .empty-state-split .row {
    flex-direction: column;
  }
  
  .empty-state-split .col-lg-6 {
    width: 100%;
  }
  
  .empty-content-glass {
    margin: var(--space-4);
    padding: var(--space-8) var(--space-6);
  }
  
  .empty-illustration-svg {
    min-height: 400px;
    padding: var(--space-6);
  }
  
  .empty-title {
    font-size: var(--font-size-3xl);
    text-align: center;
  }
  
  .empty-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .empty-state-split {
    min-height: auto;
    padding: var(--space-6) 0;
  }
  
  .min-vh-75 {
    min-height: auto;
  }
  
  .empty-content-glass {
    margin: var(--space-4);
    padding: var(--space-6) var(--space-4);
  }
  
  .empty-title {
    font-size: var(--font-size-2xl);
  }
  
  .empty-description {
    font-size: var(--font-size-base);
  }
  
  .empty-benefits {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-4);
  }
  
  .benefit-item {
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
  
  .benefit-text {
    text-align: center;
  }
  
  .empty-cta .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
  }
  
  .empty-illustration-svg {
    min-height: 300px;
    padding: var(--space-4);
  }
  
  .dashboard-illustration {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .empty-title {
    font-size: var(--font-size-xl);
  }
  
  .benefit-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }
  
  .progress-badge-text {
    font-size: var(--font-size-xs);
  }
  
  .empty-illustration-svg {
    min-height: 250px;
  }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
  .empty-state-split::before,
  .dashboard-illustration,
  .dashboard-illustration .person,
  .dashboard-illustration .dashboard,
  .progress-bar-fill,
  .progress-bar-fill::after,
  .benefit-item {
    animation: none;
    transition: none;
  }
  
  .benefit-item:hover {
    transform: none;
  }
  
  .empty-cta .btn:hover {
    transform: none;
  }
  
  .empty-cta .btn:hover i.fa-arrow-right {
    transform: none;
  }
  
  .progress-bar-fill {
    animation: none;
  }
}