
/* Section Separator */
.dev-section-separator {
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

/* Hero Banner */
.dev-hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-top: 0;
}

.dev-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.dev-hero .mobile-banner {
  display: none;
}

.dev-hero .desktop-banner {
  display: block;
}

/* Introduction Section */
.dev-intro {
  padding: 20px 20px 40px 20px;
  background-image: url('Photo/PC/carte.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.dev-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 0;
}

.dev-intro-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.dev-intro-title {
  font-size: 42px;
  color: #122f47;
  text-align: center;
  font-weight: bold;
  font-family: 'DM Serif Display', serif;
  margin-bottom: -20px;
}

.dev-intro-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dev-intro-image video {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dev-intro-text {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  text-align: center;
}

.dev-intro-text p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

.dev-intro-approach {
  color: #122f47;
  font-size: 19px;
  padding: 20px;
  background: #f8f8f8;
  border-left: 4px solid #f4c430;
  border-radius: 5px;
  text-align: center;
}

/* Services Section */
.dev-services {
  padding: 80px 20px;
  background: transparent;
  margin-top: -220px;
  position: relative;
  z-index: 5;
}

.dev-services-slider-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: hidden;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #d7c5a3;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(149, 196, 223, 0.3);
}

.slider-arrow:hover {
  background-color: #d7c5a3;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(149, 196, 223, 0.6);
}

.slider-arrow-left {
  left: 0;
}

.slider-arrow-right {
  right: 0;
}

.dev-services-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  overflow: visible;
  transition: transform 0.5s ease;
}

.dev-service-card {
  min-width: calc((100% - 60px) / 3);
  max-width: calc((100% - 60px) / 3);
  flex-shrink: 0;
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid #999;
  border-top: 4px solid #122f47;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.dev-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(18, 47, 71, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.dev-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.dev-service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  font-weight: bold;
  color: rgba(18, 47, 71, 0.2);
  font-family: 'DM Serif Display', serif;
}

.dev-service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: #fff;
  border: 1.5px solid #122f47;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(18, 47, 71, 0.3);
  transition: all 0.3s ease;
}

.dev-service-card:hover .dev-service-icon {
  transform: scale(1.1) rotate(5deg);
}

.dev-service-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: none;
}

.dev-service-title {
  font-size: 20px;
  color: #122f47;
  margin-bottom: 15px;
  font-weight: bold;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.3s ease;
}

.dev-service-description {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.dev-service-card:hover .dev-service-title {
  color: #122f47;
}

/* Services détaillés Section */
.dev-services-detailed {
  padding: 0;
  background: #fff;
}

.dev-detailed-item {
  max-width: 1400px;
  margin: 0 auto 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.dev-detailed-item:nth-child(even) {
  background: #f8f8f8;
}

.dev-detailed-item:nth-child(even) .dev-detailed-image {
  order: 2;
}

.dev-detailed-item:nth-child(even) .dev-detailed-content {
  order: 1;
}

.dev-detailed-image {
  width: 100%;
}

.dev-detailed-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dev-detailed-content {
  padding: 0 20px;
}

.dev-detailed-title {
  font-size: 32px;
  color: #122f47;
  margin-bottom: 15px;
  font-weight: bold;
  font-family: 'DM Serif Display', serif;
}

.dev-detailed-subtitle {
  font-size: 22px;
  color: #d7c5a3;
  margin-bottom: 25px;
  font-weight: 600;
}

.dev-detailed-text {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
  text-align: justify;
}

.dev-detailed-highlight {
  font-size: 16px;
  color: #122f47;
  padding: 20px;
  background: #e8e8e8;
  border-left: 4px solid #122f47;
  border-radius: 5px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.dev-detailed-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: slideHighlight 3s ease-in-out infinite;
}

@keyframes slideHighlight {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.dev-detailed-item:nth-child(even) .dev-detailed-highlight {
  background: #e8e8e8;
}

/* Process Section Styles */
.process-number {
  display: none;
}

.process .process-step .process-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.process .process-step .process-progress .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e0e0e0;
  transition: all 0.3s ease;
}

.process .process-step:nth-child(1) .process-progress .dot:nth-child(1) {
  background-color: #d7c5a3;
}

.process .process-step:nth-child(3) .process-progress .dot:nth-child(1),
.process .process-step:nth-child(3) .process-progress .dot:nth-child(2) {
  background-color: #d7c5a3;
}

.process .process-step:nth-child(5) .process-progress .dot:nth-child(1),
.process .process-step:nth-child(5) .process-progress .dot:nth-child(2),
.process .process-step:nth-child(5) .process-progress .dot:nth-child(3) {
  background-color: #d7c5a3;
}

.process .process-step:nth-child(7) .process-progress .dot {
  background-color: #d7c5a3;
}

.process .process-step:hover .process-progress .dot.active {
  background-color: #122f47;
}

/* Section Demander un projet */
.dev-project-cta {
  padding: 40px 20px 80px 20px;
  background: #fff;
  text-align: center;
}

.dev-project-cta-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto 40px;
  display: block;
}

.dev-project-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.dev-project-cta-content h2 {
  font-size: 42px;
  color: #122f47;
  margin-bottom: 20px;
  font-family: 'DM Serif Display', serif;
}

.dev-project-cta-content p {
  font-size: 20px;
  color: #122f47;
  margin-bottom: 40px;
  line-height: 1.6;
}

.dev-project-cta-button {
  display: inline-block;
  background-color: #d7c5a3;
  color: #122f47;
  padding: 18px 45px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(215, 197, 163, 0.3);
}

.dev-project-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(215, 197, 163, 0.5);
  background-color: #122f47;
  color: #d7c5a3;
}

.dev-project-cta-button .btn-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.dev-project-cta-button:hover .btn-arrow {
  transform: translateX(5px);
}

/* Why Choose Section - Carousel */
.why-choose-carousel {
  padding: 40px 20px 80px 20px;
  background-color: #fff;
  overflow: hidden;
}

.why-choose-carousel h2 {
  display: none;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 100px;
}

.carousel-wrapper {
  position: relative;
  height: 400px;
  perspective: 1000px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-card {
  position: absolute;
  width: 350px;
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #c0c0c0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.carousel-card.active {
  z-index: 3;
  transform: translateX(0) scale(1);
  opacity: 1;
}

.carousel-card.prev {
  z-index: 2;
  transform: translateX(-380px) scale(0.85);
  opacity: 0.6;
  filter: brightness(0.8);
}

.carousel-card.next {
  z-index: 2;
  transform: translateX(380px) scale(0.85);
  opacity: 0.6;
  filter: brightness(0.8);
}

.carousel-card.hidden {
  z-index: 1;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

.carousel-icon-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  border: 2px dashed #d7c5a3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.carousel-icon-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #122f47;
  font-weight: bold;
  font-family: 'DM Sans', sans-serif;
}

.carousel-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  color: #122f47;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
  left: 0;
}

.carousel-arrow-right {
  right: 0;
}

/* Formation Partners Banner */
.formation-partners {
  padding: 30px 0;
  background-color: #f8f8f8;
  overflow: hidden;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

.formation-partners-slider {
  display: flex;
  gap: 60px;
  animation: slideFormationPartners 20s linear infinite;
}

@keyframes slideFormationPartners {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.formation-partners-slider:hover {
  animation-play-state: paused;
}

.formation-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
  min-width: 180px;
}

.formation-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.formation-partner-logo img {
  max-width: 150px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  .dev-hero .mobile-banner {
    display: block;
  }

  .dev-hero .desktop-banner {
    display: none;
  }

  .formation-partners {
    padding: 20px 0;
  }

  .formation-partner-logo {
    min-width: 140px;
    padding: 10px 20px;
  }

  .formation-partner-logo img {
    max-width: 120px;
    max-height: 50px;
  }

  .why-choose-carousel h2 {
    font-size: 28px;
  }

  .carousel-container {
    padding: 0 60px;
  }

  .carousel-wrapper {
    height: 450px;
  }

  .carousel-card {
    width: 280px;
  }

  .carousel-card.prev,
  .carousel-card.next {
    transform: translateX(-300px) scale(0.8);
  }

  .carousel-card.next {
    transform: translateX(300px) scale(0.8);
  }

  .carousel-arrow {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  .dev-hero {
    height: auto;
  }

  .dev-intro-container {
    gap: 40px;
  }

  .dev-intro-text p {
    font-size: 16px;
  }

  /* Déplacer les services sous la bannière en mobile */
  .dev-services {
    margin-top: 40px;
    padding: 40px 20px;
    background: #fff;
  }

  .dev-services-slider-wrapper {
    padding: 0 50px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
  }

  .dev-services-container {
    display: flex;
    flex-direction: row;
    overflow-x: visible;
  }

  .dev-service-card {
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
  }

  .dev-detailed-item {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 60px 20px;
  }

  .dev-detailed-item:nth-child(even) .dev-detailed-image,
  .dev-detailed-item:nth-child(even) .dev-detailed-content {
    order: initial;
  }

  .dev-detailed-title {
    font-size: 26px;
  }

  .dev-detailed-subtitle {
    font-size: 18px;
  }

  .dev-detailed-content {
    padding: 0;
  }

  .dev-project-cta-content h2 {
    font-size: 32px;
  }

  .dev-project-cta-content p {
    font-size: 18px;
  }
}
