/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #050214;
  color: #ffffff;
}

/* Section Hero principale */
.service-hero {
  min-height: 100vh;
  background: linear-gradient(to top, #050214, #0a0528);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.service-hero__container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Titre principal avec animation */
.service-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Correction: Style de dégradé pour le texte surligné */
.gradient-text {
  /* Appliquer le dégradé comme un arrière-plan */
  background: linear-gradient(to right, #A076F9, #8A2BE2);
  
  /* Clipper l'arrière-plan à la forme du texte */
  -webkit-background-clip: text;
  background-clip: text;
  
  /* Rendre la couleur du texte transparente pour voir l'arrière-plan */
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Pour s'assurer que le gradient s'applique correctement */
}

/* Description avec animation */
.service-hero__description {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

/* Bouton CTA avec animation impulse */
.service-hero__cta-btn {
  display: inline-block;
  padding: 18px 36px;
  background: linear-gradient(90deg, #7B68EE, #9370DB);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards 0.6s;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease;
}

/* Pseudo-élément pour l'animation impulse */
.service-hero__cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  background: inherit;
  z-index: -2;
  animation: impulse 2s infinite 1.4s;
}

.service-hero__cta-btn::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: transparent;
  border-radius: 50px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  opacity: 0.7;
  z-index: -1;
  transition: all 0.3s ease;
}

.service-hero__cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(123, 104, 238, 0.6);
}

.service-hero__cta-btn:hover::after {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Formes décoratives */
.service-hero__shape {
  position: absolute;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.2s;
}

.service-hero__shape--diamond {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  transform: rotate(45deg);
  top: 50px;
  left: -30px;
}

.service-hero__shape--square {
  width: 40px;
  height: 40px;
  background: rgba(10, 20, 60, 0.5);
  bottom: 50px;
  left: 0;
}

.service-hero__shape--circle {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(147, 112, 219, 0.6);
  border-radius: 50%;
  bottom: 40px;
  right: -10px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes impulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
    box-shadow: 0 0 0 0 rgba(123, 104, 238, 0.7);
  }
  50% {
    transform: scale(1.08);
    opacity: 0.6;
    box-shadow: 0 0 20px 10px rgba(123, 104, 238, 0.3);
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
    box-shadow: 0 0 0 0 rgba(123, 104, 238, 0);
  }
}



/* Base styles */
:root {
  --dark-bg: #050214;
  --card-bg: rgba(59, 38, 103, 0.3);
  --card-radius: 12px;
  --accent-color: #00E5FF;
  --text-color: #ffffff;
  --transition-speed: 0.3s;
}
/* Services Grid Container */
.services-grid {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--dark-bg);
}

/* Star background effect */
.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 5s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Services grid wrapper */
.services-grid__wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* Rows with alternating column widths */
.services-row {
  display: grid;
  gap: 30px;
  width: 100%;
}

/* Odd rows: Left 60%, Right 40% */
.row-odd {
  grid-template-columns: 3fr 2fr;
}

/* Even rows: Left 40%, Right 60% */
.row-even {
  grid-template-columns: 2fr 3fr;
}

/* Service card styling */
.service-card {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-speed) ease-out;
  opacity: 0;
  transform: translateY(30px);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
}

.service-card__image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.service-card:hover .service-card__image {
  transform: scale(1.05);
}

.service-card__content {
  padding: 24px;
}

.service-card__title-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.service-card__icon-wrapper {
  margin-right: 16px;
  flex-shrink: 0;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.service-card__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 10px 3px rgba(0, 229, 255, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.2);
  }
}

/* Make icons pulse */
.service-card__icon {
  animation: pulse 2s infinite;
}

/* Responsive design */
@media (max-width: 992px) {
  /* Simplify to a single column on tablet and mobile */
  .services-row {
    grid-template-columns: 1fr !important; /* Override both row-odd and row-even */
  }
  
  .service-card__title {
    font-size: 1.1rem;
  }
  
  .service-card__description {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .service-card__content {
    padding: 20px;
  }
  
  .service-card__icon {
    width: 40px;
    height: 40px;
  }
  
  .service-card__icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .service-card__title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .service-card__icon-wrapper {
    margin: 0 auto 16px;
  }
  
  .service-card__title {
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
  }
}




/* Media queries pour la responsivité */
@media (max-width: 992px) {
  .service-hero__title {
    font-size: 3rem;
  }
  
  .service-hero__description {
    font-size: 1rem;
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .service-hero__title {
    font-size: 2.2rem;
  }
  
  .service-hero__description {
    font-size: 0.95rem;
    max-width: 600px;
  }
  
  .service-hero__cta-btn {
    padding: 16px 30px;
    font-size: 1rem;
  }
  
  /* Masquer les formes décoratives sur mobile comme demandé */
  .service-hero__shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .service-hero__title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .service-hero__description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  
  .service-hero__cta-btn {
    padding: 14px 26px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 300px;
  }
}