/* General styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header */
/* navbar */

.navbar{
    width: 100%;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #003366;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    top: 0;
    left: 0;
}


.navbar .logo img{
    margin-left: 8px;
    width: auto;
    height: 95px;
    border-radius: 10px;
}


.nav-menu{
    display: flex;
    list-style: none;
    gap: 20px;
    font-size: 25px;
    padding-right: 25px;
}

.nav-menu li a{
  font-size: 25px; 
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active{
    border-bottom: 3px solid #00c9a7;
    color: #00c9a7;
    padding-bottom: 20px;
}



/* bouton work witch us */

 
    .work-btn {
      padding: 10px 18px;
      margin-right: 10px;
      background:#fff;
      color: #003366;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 20px;
      font-weight: bold;
      transition: background-color 0.3s, color 0.3s;
    }

    .work-btn:hover {
      background-color: #02407f;
      color: #fff;
    }

    .work-btn.send{
      background-color: #00c9a7;
      color: #fff;
    }

    /* Modal */
    .modal-bg {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal {
      background: #fff;
      width: 100%;
      max-width: 400px;
      padding: 20px;
      border-radius: 8px;
    }

    label { display: block; margin: 10px 0 5px; }
    select, input, textarea {
      width: 100%;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    .close-btn {
      background: red;
      padding: 8px 12px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 10px;
    }



/* Banner */



.banner {
  height: 125vh;
  background: url("imgs/banniere.webp") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  margin-top: 50px;
}


/* About section */


.about {
  padding: 70px 20px;
  background: #f5f5f5;
  text-align: center;
}



h2.title{
  background-color: #003366;
  padding: 10px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 2.1em;
  margin-bottom: 30px;
  display: inline-block;
}

.about p {
  font-size: 1.2em;
  color: #444;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.about p strong {
  color: #003366;
}

.values {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.values .card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.values .card:hover {
  transform: translateY(-15px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.values .card h3 {
  color: #003366;
  margin-bottom: 20px;
  font-size: 25px;
}

.values .card:hover h3 {
  color: #00c9a7;
}


.values .card p {
  color: #666;
  font-size: 1em;
  line-height: 1.6;
}


/* Services section */

.services {
  padding: 70px 20px;
  background: #fff;
  text-align: center;
}

.services .intro {
  font-size: 1.5em;
  color: #444;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

.services .intro strong {
  color: #003366;
}

.service-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.service-card {
  position: relative;
  background: #f5f5f5;
  padding: 30px 20px;
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}



/* Overlay */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 12px;
  width: 0; /* Invisible au départ */
  background: #003366; /* Jaune doré semi-transparent (tu peux changer la couleur) */
  transition: width 0.4s ease; /* Animation fluide */
  z-index: 0; /* En dessous du contenu */
}

/* Quand on survole */
.service-card:hover::before {
  width: 100%; /* L’overlay se déploie de gauche à droite */
}

/* S’assure que le contenu reste au-dessus de l’overlay */
.service-card * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.service-card h3 {
  color: #003366;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.service-card:hover h3 {
  color: #00c9a7;
}

.service-card p {
  color: #666;
  font-size: 1em;
  line-height: 1.6;
}

.service-card:hover p {
  color: #fff;
}

.service-card i {
  font-size: 2.5em;
  color: #003366;
  margin-bottom: 15px;
  transition: transform 0.3s;
}

.service-card:hover i {
  transform: scale(1.2);
  color: #00c9a7;
  font-size: 2.8em;
}


/* Gallery section */


.gallery {
  padding: 70px 20px;
  background: #f5f5f5;
  text-align: center;
}


.gallery .intro {
  font-size: 1.5em;
  color: #444;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

.gallery .intro strong {
  color: #003366;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}


/* Testimonials section */

.testimonials {
  background: #f8f8f8;
  padding: 60px 20px;
  text-align: center;
}


.testimonials .subtitle {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 40px;
}

.testimonials-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.testimonial-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 300px;
  text-align: left;
}

.testimonial-card .quote {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-card .author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #222;
}

.testimonial-card span {
  font-size: 0.9rem;
  color: #888;
}



/* Contact Section */


.contact {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}


.contact .subtitle {
  text-align: center;
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 40px;
}

.contact .subtitle strong {
  color: #003366;
}

.contact-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.contact-info ,
.contact-form{
  width: 500px;
  font-size: 1rem;
  color: #555;
  box-shadow: 0  4px 10px rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 20px 40px;
  height: 300px;
}

.contact-info h3 {
  margin-bottom: 25px;
  color: #003366;
  font-size: 1.4rem;
}

.contact-info strong{
  color: #003366;
  font-size: 1.3rem;
  margin-right: 20px;
}


.contact-info a i{
    color: #fff;
    padding: 10px;
}

.contact-info a{
    margin-right: 10px;
    font-size: 19px;
    background-color: #003366;
    color: #fff;
    border-radius: 50%;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info a:hover{
    background-color: #00c9a7;
    color: #003366;
}

.contact-info a:hover i{
    color: #fff;
}


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #003366;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  outline-color: #003366;
}

.contact-form button {
  background: #003366;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #00c9a7;
}


/* Footer */

.footer {
  background: #0d1b2a;
  color: #fff;
  padding: 40px 0 20px;
}

.footer .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

/* Footer columns */
.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h3,
.footer-col h4 {
  color: #0874e0;
  margin-bottom: 15px;
  font-size: 20px;
}

.footer-col p,
.footer-col ul li a {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #fff;
}

/* Contact info */
.footer-col p i {
  margin-right: 8px;
  color: #0874e0;
}

/* Social icons */
.social-links a {
  display: inline-block;
  color: #fff;
  font-size: 25px;
  margin-right: 12px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #0874e0;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 15px;
  margin-top: 20px;
  font-size: 13px;
  color: #aaa;
}


/* ==================================== */

/*                RESPONSIVE            */

/* ====================================  */

.nav-toggle{
    font-size: 25px;
    cursor: pointer;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 20px;
    padding: 10px 20px;
    display: none;
    margin-right: 30px;
}

@media (max-width:1100px) {
 

  .banner {
    height: 100vh;
  }
}

@media (max-width: 768px) {

  .nav-menu.show{
        display: flex;
    }

    .nav-toggle{
        display:block;
    }

  

  .navbar .logo img {
    height: 50px;
    margin-left: 5px;
  }

  .work-btn {
      font-size: 15px;
     }

  .nav-menu{
        position:absolute;
        top: 60%;
        right: 0;
        width: 30%;
        flex-direction: column;
        background-color: #003366;
        gap: 0;
        display: none;
        border-top: 1px solid #ddd;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu li{
        display: block;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li a{
        display: block;
        padding: 15px;   
    }
  

  .banner {
    height: 40vh; 
    background-position: top center;
    
  }

  .about .title {
    font-size: 1.2em;
  }

  .services .intro , .services .title{
    font-size: 1.2em;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .gallery {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
  }


  .gallery .intro , .gallery .title{
    font-size: 1.2em;
  }

  .testimonials {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
  }


  .testimonials .subtitle , .testimonials .title{
    font-size: 1.2rem;
  }

  .values, .service-list, .testimonials-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .contact .title, .contact .subtitle{
    font-size: 1.2rem;
  }

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .contact-info, .contact-form {
    width: 100%;
    max-width: 250px;
    height: auto;
  }
  

  .footer .container {
    max-width: 250px;
    width: 100%;
    flex-direction: column;
    text-align: center;
    
  }
}