/* ========================================
   PAGES.CSS - Styles communs pour toutes les pages
   ======================================== 
   Styles uniformes : grilles, cards, boutons, tables, badges
*/

/* ========================================
   1. LAYOUT & GRILLES
   ======================================== */

.page-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* ========================================
   2. CARDS
   ======================================== */

.card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

/* ========================================
   3. STATS CARDS - Tous les styles sont dans cards.css
   ======================================== */

/* ========================================
   4. BARRE D'ACTIONS
   ======================================== */

.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.search-box {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f8f9fa;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

/* Les styles de boutons sont maintenant centralisés dans buttons.css */

/* ========================================
   6. TABLES
   ======================================== */

.data-table {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.data-table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.data-table tbody tr {
  transition: all 0.3s ease;
}

.data-table tbody tr:hover {
  background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
  transform: scale(1.005);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ========================================
   7. BADGES
   ======================================== */

.badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: fadeIn 0.3s ease-out;
  display: inline-block;
}

.badge-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.badge-danger {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
  color: white;
}

.badge-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.badge-info {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

/* ========================================
   8. ACTION ICONS
   ======================================== */

.action-icons {
  display: flex;
  gap: 0.5rem;
}

.action-icon {
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 12px;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  font-size: 1.2rem;
  background: #f8f9fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-icon:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ========================================
   9. EMPTY STATE
   ======================================== */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

/* ========================================
   10. ANIMATIONS
   ======================================== */

@keyframes countUp {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

/* ========================================
   11. RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .page-grid {
    padding: 1rem;
    gap: 1.5rem;
  }

  .stats-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: 100%;
  }

  /* Stat-number supprimé - voir cards.css */
}

