/* Styles pour la page Services */

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #00a0d3;
    text-align: center;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/* Service Sections */
.service-section {
    padding: 0rem 0rem;
    overflow: hidden;
    position: relative;
}

.service-content {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    padding: 0 2rem;
}

.service-section:not(.reverse) .service-content {
    justify-content: space-between;;
    padding-bottom: 8em;
}

.service-section.reverse .service-content {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.service-text {
    flex: 0 1 600px;
    position: relative;
}

.service-number {
    font-size: 1.2rem;
    color: #00a0d3;
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.service-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #00a0d3;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.service-image {
    flex: 0 1 700px;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

/* CTA Link */
.cta-link {
    display: inline-flex;
    align-items: center;
    color: #00a0d3;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-link:hover {
    transform: translateX(10px);
}

.cta-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-link:hover::after {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    text-align: center;
}

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

.cta-content h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.cta-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .service-content {
        gap: 3rem;
    }

    .service-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .service-content {
        flex-direction: column !important;
        gap: 2rem;
        padding: 0;
    }

    .service-text {
        flex: 0 1 auto;
        width: 100%;
    }

    .service-image {
        flex: 0 1 auto;
        width: 100%;
    }

    .service-text h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 0.9rem;
    }

    .service-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .service-section {
        padding: 4rem 2rem;
    }

    .service-number {
        font-size: 1.2rem;
        margin-left: 15em;
    }

    .service-text h2 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

.scroll-arrow::after {
    content: 'SCROLL';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(10px);
    color: #00a0d3;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Nos Compétences Section */
.competences-section {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.competences-header {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

.competences-header h2 {
    font-size: 3rem;
    font-weight: 600;
    color: #00a0d3;
}

.slider-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #00a0d3;
}

.slider-counter .current-slide,
.slider-counter .total-slides {
    font-weight: 600;
}

.slider-counter .total-slides::before {
    content: '/';
    margin-right: 0.5rem;
}

.competences-slider {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.competences-slider:active {
    cursor: grabbing;
}

.competences-track {
    display: flex;
    transition: transform 0.3s ease-out;
    width: 100%;
}

.competence-slide {
    min-width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.slide-counter {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.competence-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.competence-content {
    position: absolute;
    inset: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.competence-content h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.competence-content p {
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-btn.prev {
    left: 2rem;
}

.nav-btn.next {
    right: 2rem;
}

@media (max-width: 768px) {
    .competences-header h2 {
        font-size: 2.5rem;
    }

    .competence-slide {
        height: 400px;
    }

    .competence-content h3 {
        font-size: 2rem;
    }

    .competence-content p {
        font-size: 1rem;
    }
}

/* Styles responsifs pour la section Nos Compétences */
@media screen and (max-width: 1024px) {
  .competences-section {
    padding: 4rem 2rem;
  }

  .competences-header {
    padding: 0 1rem;
  }

  .competence-slide {
    height: 500px;
  }

  .nav-btn {
    width: 45px;
    height: 45px;
  }
}

@media screen and (max-width: 768px) {
  .competences-section {
    padding: 3rem 1.5rem;
  }

  .competences-header h2 {
    font-size: 2rem;
  }

  .competence-slide {
    height: 400px;
  }

  .competence-content {
    padding: 1.5rem;
  }

  .competence-content h3 {
    font-size: 1.5rem;
  }

  .competence-content p {
    font-size: 0.9rem;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    top: 50%;
  }

  .nav-btn.prev {
    left: 0.5rem;
  }

  .nav-btn.next {
    right: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .competences-section {
    padding: 2rem 1rem;
  }

  .competences-header {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }

  .competences-header h2 {
    font-size: 1.75rem;
  }

  .competence-slide {
    height: 350px;
  }

  .competence-content {
    padding: 1rem;
  }

  .competence-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .competence-content p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .nav-btn {
    width: 35px;
    height: 35px;
  }

  .slider-counter {
    font-size: 0.9rem;
  }
}

@media (max-width: 1200px) {
    .service-section {
        padding: 6rem 2rem;
    }

    .service-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .service-section {
        padding: 4rem 2rem;
    }

    .service-content {
        flex-direction: column !important;
        gap: 2rem;
    }

    .service-text {
        padding-left: 0;
    }

    .service-text h2 {
        font-size: 2rem;
    }

    .service-text p {
        font-size: 1rem;
    }
}

.realisations {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.realisations .section-title {
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 5em;
}

.realisations .section-title h1,
.realisations .section-title p {
    text-align: center;
    
    
}

.realisations .services-heading {
    text-align: left;
    font-size: 3rem;
    font-weight: 600;
    color: #00a0d3;
    max-width: 1400px;
    margin-bottom: 2rem;

}

.realisations .section-title h2 {
    text-align: left;
    font-size: 3rem;
    font-weight: 600;
    color: #00a0d3;

}

/* Ajustements responsifs */
@media (max-width: 768px) {
    .service-content {
        flex-direction: column !important;
        gap: 2rem;
        padding: 0;
    }
    
    .service-text {
        flex: 0 1 auto;
        width: 100%;
    }
    
    .service-image {
        flex: 0 1 auto;
        width: 100%;
    }
}