html {
    scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

/* Navbar fixe/sticky */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #003366;
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  height: 80px;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 100px;
  margin: 0;
  padding: 0;
}
/* Style par défaut des liens */
header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: normal; /* Texte normal par défaut */
  position: relative;
  display: inline-block;
  transition: color 0.3s, font-weight 0.3s;
}

/* Soulignement animé de gauche à droite */
header nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px; /* un peu sous le texte */
  background-color: #3ddc97;
  transition: width 0.3s ease;
}

/* Au survol */
header nav a:hover {
  color: #3ddc97;
  font-weight: bold;
}

header nav a:hover::after {
  width: 100%;
}

/* ===== MENU HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation de transformation en croix */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MENU MOBILE ===== */
@media (max-width: 768px) {
  header nav {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(0, 24, 66, 0.9);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1001;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links li a {
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
  }

  .nav-links li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -5px;
    background-color: #3ddc97;
    transition: width 0.3s ease;
  }

  .nav-links li a:hover {
    color: #3ddc97;
  }

  .nav-links li a:hover::after {
    width: 100%;
  }
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}
/* Spacer pour compenser le header fixe */

.logo a,
.logo-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: none; /* pas d’animation */
  cursor: pointer;
}

/* Désactiver les effets au survol */
.logo a:hover,
.logo-link:hover {
  color: #fff; /* garde la même couleur */
  text-decoration: none; /* pas de soulignement */
  font-weight: bold; /* ne change pas d'épaisseur */
}

.spacer {
  height: 80px;
}

/* Sections */
section {
  padding: 60px 20px 40px;
}
.section-white {
  background: #fff;
  color: #003366;
}
.section-blue {
  background: #003366;
  color: #fff;
}
h1,
h2,
h3 {
  text-align: center;
  margin-bottom: 15px;
}
h1 {
  font-size: 2rem;
  color: #003366;
}
h2 {
  font-size: 1.6rem;
  color: #3ddc97;
}
p,
li {
  line-height: 1.6;
}
.container {
  max-width: 1100px;
  margin: auto;
}
.feature-list {
  max-width: 900px;
  margin: auto;
}
.feature-list li {
  margin-bottom: 8px;
}
.cta-button {
  display: inline-block;
  background: #3ddc97;
  color: #003366;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 15px;
  transition: background 0.3s;
  font-weight: bold;
}
.cta-button:hover {
  background: #fff;
  color: #003366;
}
.testimonial,
.project {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}
.clients-logos img {
  max-height: 60px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.clients-logos img:hover {
  opacity: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 800px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: rgba(0, 51, 102, 0.05);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: scale(1.05);
}
.service-card h3 {
  margin-bottom: 10px;
  color: #003366;
}
.service-card p {
  line-height: 1.6;
}

.about-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.about-text {
  flex: 1;
  min-width: 300px;
}
.about-img {
  flex: 1;
  max-width: 600px;
  width: 100%;
  border-radius: 10px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 800px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}
.method-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.method-card h3 {
  margin-bottom: 10px;
}
.method-card p {
  line-height: 1.6;
}

/* Footer */
footer {
  background: #003366;
  color: #fff;
  padding: 50px 20px;
  font-family: Arial, sans-serif;
}
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-container h3 {
  font-weight: bold;
  text-align: left;
  margin-bottom: 15px;
}
.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: normal;
  position: relative;
  display: inline-block;
  transition: color 0.3s, font-weight 0.3s;
}
.footer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -1px;
  background-color: #3ddc97;
  transition: width 0.3s ease;
}
.footer-link:hover {
  color: #3ddc97;
  font-weight: bold;
}
.footer-link:hover::after {
  width: 100%;
}

#contact-form h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 10px;
}
#contact-form p {
  text-align: center;
  margin-bottom: 30px;
}
#contact-form button:hover {
  background: #3ddc97;
  color: #003366;
}
/* Responsive */
@media (max-width: 600px) {
  #contact-form form {
    width: 100%;
    gap: 12px;
  }
}
