/* Section Services Améliorée */

.services-enhanced {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.services-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* En-tête de section */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #007bff);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grille des services */
.services-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Cards de service */
.service-card-enhanced {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  position: relative;
  height: 100%;
}

.service-card-enhanced:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card-inner {
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Wrapper d'icône */
.service-icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.1;
  transition: all 0.3s ease;
}

.service-icon-bg.audit { background: #e74c3c; }
.service-icon-bg.conseil { background: #f39c12; }
.service-icon-bg.management { background: #3498db; }
.service-icon-bg.governance { background: #9b59b6; }
.service-icon-bg.continuity { background: #1abc9c; }
.service-icon-bg.security { background: #e67e22; }

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.service-card-enhanced:hover .service-icon-bg {
  opacity: 0.2;
  transform: scale(1.1);
}

.service-card-enhanced:hover .service-icon {
  transform: scale(1.1);
  color: #007bff;
}

/* Contenu du service */
.service-content-enhanced {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.3;
}

.service-description {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 25px;
  flex: 1;
  text-align: justify;
}

/* Tags de fonctionnalités */
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}

.feature-tag {
  background: linear-gradient(135deg, var(--primary-color), #007bff);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .services-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .services-enhanced {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 60px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .services-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .service-card-inner {
    padding: 30px 25px;
  }
  
  .service-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
  }
  
  .service-icon {
    font-size: 2rem;
  }
  
  .service-title {
    font-size: 1.2rem;
  }
  
  .service-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .services-enhanced {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-card-inner {
    padding: 25px 20px;
  }
  
  .service-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .service-icon {
    font-size: 1.8rem;
  }
  
  .service-title {
    font-size: 1.1rem;
  }
  
  .service-description {
    font-size: 0.9rem;
    text-align: center;
  }
  
  .feature-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

/* Animations d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card-enhanced {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Mode sombre */
.dark-theme .services-enhanced {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.dark-theme .service-card-enhanced {
  background: #2d3748;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .section-title {
  color: #e2e8f0;
}

.dark-theme .section-subtitle {
  color: #a0aec0;
}

.dark-theme .service-title {
  color: #e2e8f0;
}

.dark-theme .service-description {
  color: #a0aec0;
}

.dark-theme .service-icon {
  color: #63b3ed;
}

.dark-theme .service-card-enhanced:hover .service-icon {
  color: #90cdf4;
}

/* Effet de parallaxe subtil */
.services-enhanced {
  background-attachment: fixed;
}

/* Effet de brillance sur hover */
.service-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.service-card-enhanced:hover::before {
  left: 100%;
}

.service-card-inner {
  position: relative;
  z-index: 2;
}
