*{
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body{
   font-family: sans-serif;
}

header{
   background-color: #036de7;
   color: white;
   position: sticky;
   top: 0;
   width: 100%;
   z-index: 1000;
   box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.1);
}

.container{
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 10px 20px;
}

.logo img{
   height: 80px;
}


.navbar{
   position: relative;
}

.nav-links{
   list-style: none;
   display: flex;
   gap: 20px;
}

.nav-links li{
   position: relative;
}

.nav-links li a{
   text-decoration: none;
   color: white;
   font-weight: bold;
   position: relative;
   transition: color 0.3s;
}

.nav-links li a:hover{
   color: #FFD700;
}

.menu-toggle{
   display: none;
   cursor: pointer;
   font-size: 22px;
   color: white;
   position: relative;
   z-index: 2000;
}

.accueil {
   background-image: url('images/image\ font.png'); /* Remplace avec ton image */
   background-size: cover;
   background-position: center;
   height: 100vh;
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   text-align: center;
 }
 
 .accueil .overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: rgba(0, 0, 139, 0.6);
   backdrop-filter: blur(2px);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
  padding: 20px;
}

/* Effet machine à écrire en boucle */
.typing {
  font-size: 2.5em;
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 4s steps(30, end) infinite, blink 0.8s infinite;
  max-width: 100%;
}

@keyframes typing {
  0% {
    width: 0;
  }
  50% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.description {
  margin-top: 20px;
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 600px;
}

/* Bouton WhatsApp avec effet zoom */
.btn-cta {
  margin-top: 30px;
  padding: 12px 25px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  animation: zoom 2s infinite;
  transition: background 0.3s ease, transform 0.3s;
}

@keyframes zoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.btn-cta:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

.services {
   padding: 60px 20px;
   background: #f8f8f8;
   text-align: center;
 }
 
 .services h2 {
   font-size: 2.5em;
   color: #333;
   margin-bottom: 10px;
 }
 
 .services .subtitle {
   font-size: 1.1em;
   color: #666;
   margin-bottom: 40px;
 }
 
 .services-grid {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 20px;
 }
 
 .service-card {
   background: white;
   border-radius: 10px;
   box-shadow: 0 4px 10px rgba(0,0,0,0.1);
   padding: 20px;
   width: 270px;
   text-align: center;
   transition: transform 0.3s;
 }
 
 .service-card:hover {
   transform: translateY(-5px);
 }
 
 .service-card img {
   width: 100%;
   height: 150px;
   object-fit: cover;
   border-radius: 8px;
   margin-bottom: 15px;
 }
 
 .service-card h3 {
   font-size: 1.2em;
   margin-bottom: 10px;
   color: #007bff;
 }
 
 .service-card p {
   font-size: 0.95em;
   color: #555;
 }

 /* Animation des cartes */
.service-card {
   opacity: 0;
   transform: translateY(30px);
   transition: opacity 0.8s ease, transform 0.8s ease;
 }
 
 /* Classe ajoutée quand visible */
 .service-card.visible {
   opacity: 1;
   transform: translateY(0);
 }

 .realisations {
  background-color: #f2f2f2;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}

.realisations h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 20px;
  animation: slide-desktop 30s linear infinite;
}

.realisation {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 250px;
  max-width: 280px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.realisation img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.realisation p {
  padding: 10px;
  font-size: 14px;
}

/* Animation pour desktop */
@keyframes slide-desktop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


.projets {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.projets h2 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 40px;
}

.projets-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.projet-item {
  position: relative;
  width: 300px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  animation: zoom 5s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.projet-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 139, 0.5);
  backdrop-filter: blur(2px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
}

.projet-overlay h3 {
  margin: 0;
  font-size: 1.3em;
}

.projet-overlay p {
  font-size: 0.95em;
}

/* Zoom en continu */
@keyframes zoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.equipe {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.equipe h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

.equipe-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.equipe-card {
  width: 250px;
  background-color: #f9f9f9;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipe-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.equipe-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.equipe-desc {
  background-color: rgba(0, 0, 139, 0.8);
  color: white;
  padding: 20px 10px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -30px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.equipe-desc h3 {
  margin: 10px 0 5px;
  font-size: 1.2em;
}

.equipe-desc p {
  margin: 2px 0;
  font-weight: bold;
}

.equipe-desc span {
  font-size: 0.9em;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icons a {
  color: white;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffd700;
}

.partenaires {
  background-color: #003366;
  padding: 2px 20px; /* réduit depuis 40px */
  text-align: center;
}


.partenaires h2 {
  font-size: 2em;
  color: white;
  margin-bottom: 5px;
}

.partenaires-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.partenaires-container img {
  width: 100px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.partenaires-container img:hover {
  transform: scale(1.1);
}

.contact-fixed {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 999;
}

.contact-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  background-color: #003366;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  animation: zoom 2s infinite ease-in-out;
  transition: background 0.3s;
  text-decoration: none;
}

.contact-fixed a:hover {
  background-color: #005599;
}

@keyframes zoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.site-footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
}




@media screen and (max-width: 768px){
   .nav-links{
      position: fixed;
      top: 80px;
      right: 0;
      width: 220px;
      background-color: #036de7;
      flex-direction: column;
      align-items: flex-start;
      padding: 20px;
      gap: 15px;
      height: auto;
      transform: translateX(100%);
      opacity: 0;
      transition: transform 0.4s ease, opacity 0.4s ease;
      z-index: 1500;
   }

   .nav-links.open{
      transform: translateX(0);
      opacity: 1;

   }

   .menu-toggle{
      display: block;
   }

   .typing {
      font-size: 1.6em;
    }
  
    .description {
      font-size: 0.95em;
      padding: 0 10px;
    }
  
    .btn-cta {
      padding: 10px 20px;
      font-size: 0.9em;
    }

    .services-grid {
      flex-direction: column;
      align-items: center;
    }
  
    .service-card {
      width: 90%;
    }

    .carousel-track {
      animation-duration: 60s;
    }
  
    .real-card {
      min-width: 80%;
    }
  
    .real-card p {
      font-size: 0.9em;
    }

    .projets-container {
      flex-direction: column;
      align-items: center;
    }
  
    .projet-item {
      width: 90%;
      height: 180px;
    }
  
    .projet-overlay h3 {
      font-size: 1.1em;
    }
  
    .projet-overlay p {
      font-size: 0.9em;
    }

    .equipe-container {
      flex-direction: column;
      align-items: center;
    }
  
    .equipe-card {
      width: 90%;
    }

     .slider-track {
    animation: none;
    transform: translateX(0);
  }

  .realisation {
    min-width: 100%;
    max-width: 100%;
  }
  
  
    .partenaires-container {
      gap: 5px; /* encore plus rapproché */
      align-items: center;
    }
  
    .partenaires-container img {
      width: 45px;
      margin: 0; /* s'assurer qu’il n’y a pas d’espacement inutile */
    }

    .partenaires h2 {
      font-size: 1.3em;
      color: white;
      margin-bottom: 5px;
    }

    .equipe h2 {
      font-size: 1.3em;
      margin-bottom: 5px;
    }

    .projets h2 {
      font-size: 1.3em;
      margin-bottom: 5px;
    }

    .realisations h2 {
      font-size: 1.3em;
      margin-bottom: 5px;
    }

    .services h2 {
      font-size: 1.3em;
      margin-bottom: 5px;
    }
}