/* ========================================
   DASHBOARD AGLAÉ CRÉE
   ======================================== */

.aglae-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ========================================
   HEADER DE BIENVENUE
   ======================================== */

.aglae-dashboard-header {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
}

.aglae-dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e3dd;
}

.welcome-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--bg-btn, #4a90e2), #357abd);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.welcome-content {
  flex: 1;
}

.aglae-dashboard-title {
  font-family: "Capitolium", serif;
  font-size: 2rem;
  color: var(--bg-marron, #6b5b4d);
  margin: 0 0 0.5rem 0;
  font-weight: normal;
}

.aglae-dashboard-subtitle {
  color: #8a7a6b;
  font-size: 1.1rem;
  margin: 0;
}

.logout-link {
  flex-shrink: 0;
}

.aglae-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bg-marron, #6b5b4d);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.aglae-btn-text:hover {
  background: var(--bg-decli4, #f2e0c9);
  color: var(--bg-marron, #6b5b4d);
  text-decoration: none;
}

.aglae-dashboard-intro {
  color: #555;
  line-height: 1.6;
}

.aglae-dashboard-intro p {
  margin: 0;
}

.aglae-dashboard-intro a {
  color: var(--bg-btn, #4a90e2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.aglae-dashboard-intro a:hover {
  color: #357abd;
  text-decoration: underline;
}

/* ========================================
   TITRES DE SECTION
   ======================================== */

.section-title {
  font-family: "Capitolium", serif;
  font-size: 1.75rem;
  color: var(--bg-marron, #6b5b4d);
  margin: 0 0 1.5rem 0;
  font-weight: normal;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* ========================================
   GRILLE D'ACTIONS RAPIDES
   ======================================== */

.aglae-dashboard-quick-actions {
  margin-bottom: 2rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.quick-action-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: white;
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quick-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(107, 91, 77, 0.15);
  border-color: var(--bg-btn, #4a90e2);
  text-decoration: none;
}

.card-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--bg-decli4, #f2e0c9);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-marron, #6b5b4d);
  transition: all 0.3s ease;
}

.quick-action-card:hover .card-icon {
  background: linear-gradient(135deg, var(--bg-btn, #4a90e2), #357abd);
  color: white;
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg-marron, #6b5b4d);
  margin: 0 0 0.25rem 0;
}

.card-content p {
  font-size: 0.9rem;
  color: #8a7a6b;
  margin: 0;
}

.card-arrow {
  flex-shrink: 0;
  color: #8a7a6b;
  transition: all 0.3s ease;
}

.quick-action-card:hover .card-arrow {
  color: var(--bg-btn, #4a90e2);
  transform: translateX(3px);
}

/* ========================================
   COMMANDES RÉCENTES
   ======================================== */

.aglae-dashboard-recent-orders {
  margin-bottom: 2rem;
}

.recent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-order-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
  transition: all 0.3s ease;
}

.recent-order-card:hover {
  box-shadow: 0 8px 30px rgba(107, 91, 77, 0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8e3dd;
}

.order-number {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-number .label {
  font-size: 0.85rem;
  color: #8a7a6b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-number strong {
  font-size: 1.1rem;
  color: var(--bg-marron, #6b5b4d);
}

.status-badge {
  display: inline-flex;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.status-processing,
.status-badge.status-on-hold {
  background: rgba(255, 193, 7, 0.15);
  color: #f57c00;
}

.status-badge.status-completed {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}

.status-badge.status-pending {
  background: rgba(158, 158, 158, 0.15);
  color: #616161;
}

.status-badge.status-cancelled,
.status-badge.status-refunded,
.status-badge.status-failed {
  background: rgba(244, 67, 54, 0.15);
  color: #c62828;
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.order-info {
  display: flex;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8a7a6b;
  font-size: 0.9rem;
}

.info-item svg {
  color: var(--bg-marron, #6b5b4d);
  flex-shrink: 0;
}

.order-total {
  text-align: right;
}

.total-label {
  display: block;
  font-size: 0.85rem;
  color: #8a7a6b;
  margin-bottom: 0.25rem;
}

.total-amount {
  font-size: 1.25rem;
  color: var(--bg-btn, #4a90e2);
}

.order-actions {
  display: flex;
  gap: 1rem;
}

.aglae-btn-outline-small {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border: 2px solid var(--bg-marron, #6b5b4d);
  color: var(--bg-marron, #6b5b4d);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.aglae-btn-outline-small:hover {
  background: var(--bg-marron, #6b5b4d);
  color: white;
  text-decoration: none;
}

/* ========================================
   SECTION D'AIDE
   ======================================== */

.aglae-dashboard-help {
  margin-bottom: 2rem;
}

.help-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--bg-decli4, #f2e0c9), var(--bg-decli3, #d9c3b0));
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(107, 91, 77, 0.1);
}

.help-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-marron, #6b5b4d);
}

.help-content {
  flex: 1;
}

.help-content h3 {
  font-family: "Capitolium", serif;
  font-size: 1.5rem;
  color: var(--bg-marron, #6b5b4d);
  margin: 0 0 0.75rem 0;
  font-weight: normal;
}

.help-content p {
  color: #8a7a6b;
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
}

.aglae-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-btn, #4a90e2), #357abd);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.aglae-btn-primary:hover {
  background: linear-gradient(135deg, #357abd, #2a5f8f);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
  color: white;
  text-decoration: none;
}

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

@media (max-width: 1024px) {
  .aglae-dashboard {
    padding: 1.5rem;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .aglae-dashboard {
    padding: 1rem;
  }

  .aglae-dashboard-header {
    padding: 1.75rem;
  }

  .aglae-dashboard-welcome {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .welcome-icon {
    width: 60px;
    height: 60px;
  }

  .aglae-dashboard-title {
    font-size: 1.75rem;
  }

  .logout-link {
    width: 100%;
  }

  .aglae-btn-text {
    width: 100%;
    justify-content: center;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .quick-action-card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 50px;
    height: 50px;
  }

  .order-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .order-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .order-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  .order-total {
    text-align: left;
    width: 100%;
  }

  .help-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }

  .help-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .aglae-dashboard-header {
    padding: 1.5rem;
  }

  .aglae-dashboard-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .quick-action-card {
    padding: 1.25rem;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  .recent-order-card {
    padding: 1.5rem;
  }

  .help-content h3 {
    font-size: 1.25rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.aglae-dashboard-header,
.quick-action-card,
.recent-order-card,
.help-card {
  animation: fadeInUp 0.5s ease-out;
}

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

/* ========================================
   ACCESSIBILITÉ
   ======================================== */

.quick-action-card:focus,
.aglae-btn-text:focus,
.aglae-btn-outline-small:focus,
.aglae-btn-primary:focus {
  outline: 2px solid var(--bg-btn, #4a90e2);
  outline-offset: 2px;
}
