/**
 * user_dashboard.css - Styles premium pour le tableau de bord utilisateur
 * Version 2.0 - Design moderne avec effets avancés
 */

/* Structure principale */
.user-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--background) 0%, rgba(242, 247, 250, 0.8) 100%);
  position: relative;
  overflow-x: hidden;
}

/* Motif de fond subtil */
.user-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300628B' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  opacity: 0.5;
}

/* Animation des particules de fond */
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50% { transform: translateY(-15px) rotate(3deg); opacity: 0.7; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
}

.user-layout::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 98, 139, 0.05) 0%, rgba(0, 98, 139, 0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

/* En-tête utilisateur avec effet de verre */
.user-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(218, 230, 236, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
  transition: all 0.3s ease;
}

.user-header .logo {
  display: flex;
  align-items: center;
}

.user-header .logo svg {
  margin-right: var(--spacing-xs);
  transition: transform 0.3s ease;
}

.user-header .logo:hover svg {
  transform: scale(1.1);
}

.user-header .logo span {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Animation du logo */
@keyframes logoAnimation {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.user-header .logo svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: logoAnimation 1.5s ease-in-out;
}

.user-header .logo:hover svg path {
  animation: logoAnimation 1.5s ease-in-out infinite alternate;
}

/* Header user dropdown */
.user-actions {
  display: flex;
  align-items: center;
}

.dropdown {
  position: relative;
  margin-right: var(--spacing-md);
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background-color: rgba(0, 98, 139, 0.1);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  background-color: rgba(0, 98, 139, 0.2);
}

.dropdown-toggle i {
  font-size: 16px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: var(--z-index-dropdown);
  display: none;
  animation: dropdownFadeIn 0.2s ease forwards;
  overflow: hidden;
  transform-origin: top right;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item i {
  margin-right: 10px;
  width: 18px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(0, 98, 139, 0.05);
}

.dropdown-item:hover i {
  transform: translateX(2px);
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger i {
  color: var(--danger);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 6px 0;
}
/* Style du header utilisateur avec dropdown */
.header-user {
  display: flex;
  align-items: center;
  position: relative;
}

.user-info-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-info-toggle:hover {
  background-color: rgba(0, 98, 139, 0.05);
}

.header-user .dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.header-user span {
  font-weight: var(--font-weight-semibold);
  margin-right: 10px;
  transition: color 0.2s ease;
}

.header-user:hover span {
  color: var(--primary);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-weight-bold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 98, 139, 0.2);
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 98, 139, 0.3);
}

/* Menu déroulant */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  z-index: var(--z-index-dropdown);
  display: none;
  animation: dropdownFadeIn 0.2s ease forwards;
  overflow: hidden;
  transform-origin: top right;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item i {
  margin-right: 10px;
  width: 18px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(0, 98, 139, 0.05);
}

.dropdown-item:hover i {
  transform: translateX(2px);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 6px 0;
}

/* Contenu principal avec effet 3D */
.user-content {
  flex: 1;
  padding: var(--spacing-xl) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* Section */
.dashboard-section {
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.dashboard-section.delay-1 { animation-delay: 0.1s; }
.dashboard-section.delay-2 { animation-delay: 0.3s; }
.dashboard-section.delay-3 { animation-delay: 0.5s; }

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

/* Bannière de bienvenue */
.user-welcome {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.user-welcome:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.user-welcome::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer 4s infinite;
  pointer-events: none;
}

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

.user-welcome h1 {
  font-size: var(--font-size-xl);
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.user-welcome h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.user-welcome p {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  max-width: 80%;
}

/* News preview */
.news-preview {
  margin-bottom: var(--spacing-xl);
}

.news-preview-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.news-preview-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.news-preview-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  background-color: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-preview-content {
  padding: var(--spacing-lg);
}

.news-preview-date {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.news-preview-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary);
}

.news-preview-text {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
}

.news-preview-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-preview-link:hover {
  color: var(--primary-dark);
}

.news-preview-link i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.news-preview-link:hover i {
  transform: translateX(4px);
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: var(--font-weight-bold);
  position: relative;
  margin: 0;
  padding-bottom: var(--spacing-xs);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.section-action {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.section-action:hover {
  color: var(--primary-dark);
}

.section-action i {
  margin-left: 5px;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.section-action:hover i {
  transform: translateX(3px);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(218, 230, 236, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-header {
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid rgba(218, 230, 236, 0.4);
  position: relative;
}

.service-card-title {
  display: flex;
  align-items: center;
  margin: 0;
}

.service-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);*/
  color: white;
  border-radius: 8px;
  margin-right: 12px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0, 98, 139, 0.2);
  transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 12px rgba(0, 98, 139, 0.3);
}

.service-card-title-text {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--primary);
  transition: color 0.2s ease;
}

.service-card:hover .service-card-title-text {
  color: var(--primary-dark);
}

.service-card-description {
  padding: var(--spacing-md) var(--spacing-lg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.service-badge {
  display: inline-block;
  padding: 4px 8px;
  background-color: rgba(0, 98, 139, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card-actions {
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  gap: var(--spacing-md);
  border-top: 1px solid rgba(218, 230, 236, 0.4);
  background-color: rgba(242, 247, 250, 0.4);
  min-height: 74px; /* Hauteur fixe pour uniformiser les cartes */
}

.service-card-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.service-card-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.service-card-button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.service-card-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 98, 139, 0.3);
}

.service-card-button.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.service-card-button.secondary:hover {
  background-color: rgba(0, 98, 139, 0.1);
  box-shadow: 0 3px 8px rgba(0, 98, 139, 0.15);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-bottom: var(--spacing-md);
}

.empty-state p {
  margin: 8px 0;
  color: var(--text-primary);
  font-weight: 500;
}

.empty-state .text-muted {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: var(--spacing-md);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(0, 98, 139, 0.3) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  padding-bottom: var(--spacing-lg);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 11px;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(0, 98, 139, 0.2);
}

.timeline-content {
  background: white;
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.activity-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 15px;
}

.activity-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-style: italic;
}

/* Pied de page */
.user-footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(218, 230, 236, 0.5);
  padding: var(--spacing-md) var(--spacing-lg);
  text-align: center;
  margin-top: var(--spacing-xl);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

body a {
  position: relative;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.table-responsive a::after {
  content: inherit;
}
a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.user-footer p {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .user-content {
    padding: var(--spacing-md);
  }
  
  .user-welcome {
    padding: var(--spacing-md);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .user-header {
    padding: var(--spacing-sm);
  }
  
  .user-header .logo span {
    display: none;
  }
  
  .header-user span {
    display: none;
  }
  
  .service-card-actions {
    flex-direction: column;
    gap: 10px;
    min-height: 110px;
  }
  
  .service-card-button {
    width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Animation de chargement */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmerAnimation 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmerAnimation {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Styles de défilement personnalisés */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 98, 139, 0.3);
  border-radius: 5px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 98, 139, 0.5);
}

.service-form {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.service-form .service-card-button {
  border: none;
  cursor: pointer;
  width: 100%;
}




/* Légende des services */

.service-category-group {
  margin-bottom: 1.5rem;
}

.service-category-group:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #e9ecef;
}
.service-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .service-legend {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 0.75rem;
  }
}

.service-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.service-legend-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-legend-item .service-icon {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-legend-item span {
  font-weight: 500;
  color: #495057;
  font-size: 0.9rem;
}

.service-category {
  color: #6c757d;
  font-size: 0.75rem;
  font-style: italic;
  margin-left: 0.25rem;
}

.empty-state-small {
  text-align: center;
  padding: 2rem;
}

.empty-state-small p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive pour mobile */
@media (max-width: 480px) {
  .service-legend {
      grid-template-columns: 1fr;
  }
  
  .service-legend-item {
      padding: 0.5rem;
      gap: 0.5rem;
  }
  
  .service-legend-item .service-icon {
      width: 30px;
      height: 30px;
      font-size: 0.8rem;
  }
  
  .service-legend-item span {
      font-size: 0.85rem;
  }
}