:root {
    --primary-color: #75bae6;
    --primary-dark: #5ba0cc;
    --primary-light: #8ed3ff;
    --secondary-color: #359DDF;
    --accent-color: #4296CD;
    --text-color: #384653;
    --text-light: #666;
    --heading-color: #2E3C4E;
    --background-color: #FFFFFF;
    --light-background: #f8f9fa;
    --border-color: #bacfdd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 1.25rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-weight: 400;
}

.container {
    max-width: 100%;
    padding: 0 5%;
    margin: 0 auto;
}

/* Hero Section avec slider */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 15s linear;
    transform: scale(1.2);
    will-change: transform;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}


.hero-slide:first-child {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: var(--radius);
    max-width: 1050px;
    margin: 0 auto;
    width: 95%;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    max-width: auto;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: tracking-in-contract-bck 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* Animation tracking-in-contract-bck */
@keyframes tracking-in-contract-bck {
    0% {
        letter-spacing: 1em;
        transform: translateZ(400px);
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        transform: translateZ(0);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 500;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Navigation */
.navbar {
    position: relative;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.sticky {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    margin-right: 2rem;
}

.navbar-logo img {
    z-index: 9;
    position: absolute;
    height: 5rem;
    transition: var(--transition);
    border-radius: 10px;
}

.navbar-logo img:hover {
    transform: scale(1.05);
}

.navbar-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border-radius: 1px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(117, 186, 230, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 5%;
}

section:not(.hero) {
    padding-left: 5%;
    padding-right: 5%;
}

.section-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--light-background);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Services Section 
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(117, 186, 230, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Carousel container */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Service cards in carousel */
.service-card {
  min-width: 300px;
  max-width: 350px;
  margin: 0 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Expertise Section avec background slideshow */
.services {
  position: relative;
  color: var(--text-color);
  padding: 100px 5%;
  overflow: hidden;
}

.expertise-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
  opacity: 1;
}

.services .container {
  position: relative;
  z-index: 2;
  padding: 1.2rem;
  text-align: left;
}

.services::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.85); /* voile pour lisibilité */
  z-index: 1;
}


.service-content h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.service-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(53, 157, 223, 0.8);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--secondary-color);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
  .service-card {
    min-width: 80%;
  }
}


/* Projects Section */
.projects {
    background: var(--light-background);
}

.projects-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.projects-content h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.projects-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Partners Section */
.partners {
    text-align: center;
}

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

.partners-content ul {
    list-style: none;
    display: inline-block;
    text-align: left;
    margin: 2rem 0;
}

.partners-content li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.partners-content li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

blockquote {
    font-style: italic;
    color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
}

/* Contact Section */
.contact {
    background: var(--light-background);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-item {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(117, 186, 230, 0.1);
}

/* Footer */
.footer {
    background: var(--heading-color);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Barlow', sans-serif;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
    }
    
    .navbar-logo {
        margin: 0 0 1rem 0;
    }
    
    .navbar-links {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 5%;
    }
}

@media (max-width: 480px) {
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Timeline Horizontale */
.horizontal-timeline {
    position: relative;
    max-width: 100%;
    margin: 5rem auto 0;
    padding: 0 2rem;
}

.timeline-progress {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 0;
}

.timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.timeline-item {
    flex: 1;
    max-width: 45%;
    padding: 0 1.5rem;
    position: relative;
    text-align: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 6px rgba(117, 186, 230, 0.2);
    transition: var(--transition);
}

.timeline-content {
    background: rgba(117, 186, 230, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-top: 1rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-bottom: 1rem;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(117, 186, 230, 0.3);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Animation spécifique pour la timeline horizontale */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1) { transition-delay: 0.2s; }
.timeline-item:nth-child(2) { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .timeline-items {
        flex-direction: column;
    }
    
    .timeline-item {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .timeline-progress {
        display: none;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 1rem 0;
    }
}

