.freelance-sap-hero {
  background: linear-gradient(
    135deg,
    #000 0%,
    #1a0a3e 50%,
    #000 100%
  ) !important;
  color: #ffffff !important;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.freelance-sap-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    rgba(139, 92, 246, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}

.freelance-sap-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 0;
}

.freelance-sap-hero .container {
  position: relative;
  z-index: 1;
}

.freelance-sap-hero-title {
  color: #ffffff !important;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
  animation: slideDown 0.8s ease-out;
}

.freelance-sap-hero-subtitle {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.3rem;
  font-weight: 300;
  opacity: 0.95;
  animation: slideUp 0.8s ease-out;
}

/* Introduction Section - Quote & Stats */
.fs-intro-section {
  background: linear-gradient(135deg, #f9f9fc 0%, #ffffff 100%);
  padding: 80px 0 !important;
}

.fs-quote {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  color: #1a0a3e;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 30px;
  border-left: 5px solid #330cb3;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.08);
  line-height: 1.6;
}

.highlight-stat {
  color: #330cb3;
  font-weight: 700;
  font-size: 2rem;
  font-style: normal;
}

.fs-stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fs-value-prop {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #4b5563;
  line-height: 1.8;
}

.fs-value-prop strong {
  color: #330cb3;
  font-weight: 700;
}

.fs-section {
  padding: 60px 0;
  position: relative;
  background-color: #ffffff;
  overflow: hidden;
}

.fs-section.alt-bg {
  background-color: #f9f9fc;
}

/* Typography & Titles */
.fs-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #330cb3;
  margin-bottom: 60px;
  position: relative;
  text-align: center;
  padding: 0;
  border: none;
  line-height: 1.2;
}

.fs-section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #330cb3;
  border-radius: 2px;
}

/* Solutions Grid (Nos Types de Solutions) */
.fs-solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .fs-solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fs-solution-card {
  position: relative;
  padding: 30px;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.fs-solution-card:hover {
  transform: translateY(-5px);
}

.fs-solution-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #330cb3;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.fs-solution-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 15px;
}

.fs-solution-detail {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

/* Stack Grid (Stack Technique) */
.fs-stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .fs-stack-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fs-stack-block {
  padding: 30px;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.fs-stack-block:hover {
  transform: translateY(-5px);
}

.fs-stack-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: #330cb3;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fs-stack-text {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.6;
}

/* Benefits List (Pourquoi Investir) */
.fs-reasons-list {
  counter-reset: reason-counter;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .fs-reasons-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.fs-reason-item {
  position: relative;
  padding: 30px;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.fs-reason-item:hover {
  transform: translateY(-5px);
}

.fs-reason-item::before {
  counter-increment: reason-counter;
  content: "0" counter(reason-counter);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(51, 12, 179, 0.1);
  position: absolute;
  top: -15px;
  left: 0;
  line-height: 1;
  z-index: 0;
}

.fs-reason-content {
  position: relative;
  z-index: 1;
}

.fs-reason-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a0a3e;
  margin-bottom: 10px;
}

.fs-reason-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

/* Process Section (Approche) */
.fs-process {
  padding: 80px 0;
  background-color: #ffffff;
}

.fs-process .section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #330cb3;
}

.fs-process-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: #6b7280;
  font-size: 1.1rem;
}

.fs-process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .fs-process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fs-process-step {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 30px;
  border: 1px solid rgba(51, 12, 179, 0.1);
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.fs-process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(51, 12, 179, 0.1);
}

.fs-step-number {
  background: #330cb3;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(51, 12, 179, 0.3);
}

.fs-process-step h3 {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 15px;
  font-weight: 700;
}

.fs-process-step p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .freelance-sap-hero-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  .fs-section {
    padding: 20px 0px;
  }

  .fs-section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .fs-section-title::after {
    bottom: -10px;
    width: 60px;
    height: 3px;
  }

  /* Center all card content on mobile */
  .fs-solution-card,
  .fs-stack-block,
  .fs-reason-item,
  .fs-process-step {
    text-align: center;
    padding: 25px 20px;
  }

  .fs-solution-title,
  .fs-stack-header,
  .fs-reason-title {
    justify-content: center;
    text-align: center;
  }

  /* Adjust fonts for mobile */
  .fs-solution-title {
    font-size: 1.3rem;
  }

  .fs-solution-desc,
  .fs-stack-text {
    font-size: 1rem;
  }

  .fs-stack-header {
    font-size: 1.15rem;
  }

  /* Center reason counter */
  .fs-reason-item::before {
    left: 50%;
    transform: translateX(-50%);
    top: -20px;
    font-size: 2.5rem;
  }

  .fs-process .section-title {
    font-size: 1.8rem;
  }

  .fs-process-step h3 {
    font-size: 1.15rem;
  }

  .fs-process-step p {
    font-size: 0.9rem;
  }

  /* Center step number on mobile */
  .fs-step-number {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  /* Further reduce for very small screens */
  .fs-section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .fs-process .section-title {
    font-size: 1.5rem;
  }

  /* Tighter padding on very small screens */
  .fs-solution-card,
  .fs-stack-block,
  .fs-reason-item,
  .fs-process-step {
    padding: 20px 15px;
  }
}
