/* Global */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

header {
  background-color: #005b99;
  padding: 1rem 0;
  color: white;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

header .logo h1 {
  font-size: 1.8rem;
  margin: 0;
}

header nav ul.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

header nav ul.menu li {
  margin: 0 1rem;
  position: relative;
}

header nav ul.menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

header nav ul.menu a:hover {
  color: #ffcc00;
}

/* Dropdown Menu */
header nav ul.submenu {
  display: none;
  position: absolute;
  background-color: #005b99;
  list-style: none;
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
  z-index: 10;
}

header nav ul.menu li:hover ul.submenu {
  display: block;
}

header nav ul.submenu li {
  margin: 0;
  padding: 0.5rem 1rem;
}

header nav ul.submenu a {
  color: white;
  font-size: 0.9rem;
}

header nav ul.submenu a:hover {
  color: #ffcc00;
}

/* Section Introduction */
#intro {
  background: linear-gradient(135deg, #0066cc, #00b3e6); /* Gradient dynamique */
  color: white;
  padding: 4rem 1rem; /* Espacement généreux */
  text-align: center;
  border-radius: 10px; /* Coins arrondis pour un look moderne */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Ombre pour profondeur */
}

.intro-content {
  max-width: 900px; /* Limite la largeur pour une meilleure lisibilité */
  margin: 0 auto; /* Centrer le contenu */
}

.intro-heading {
  font-size: 2.5rem; /* Titre large et impactant */
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px; /* Espacement des lettres pour un effet plus pro */
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #f0f0f0;
}

.intro-text:nth-child(odd) {
  font-weight: 600; /* Met en valeur les sections impaires */
}

.cta-btn {
  display: inline-block;
  background-color: #ffcc00; /* Couleur vive et contrastée pour l'appel à l'action */
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Effet de survol */
}

.cta-btn:hover {
  background-color: #e6b800; /* Changement de couleur au survol */
  transform: translateY(-5px); /* Animation pour attirer l'attention */
}

@media (max-width: 768px) {
  .intro-heading {
    font-size: 2rem; /* Réduit la taille du titre sur petits écrans */
  }

  .intro-text {
    font-size: 1.1rem;
  }

  .cta-btn {
    padding: 1rem 2rem;
    font-size: 1rem; /* Ajuste le bouton pour les mobiles */
  }
}

/* Section Services */
#services {
  background: #f9f9f9;
  padding: 3rem 1rem;
  text-align: center;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #005b99;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-item {
  background: white;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1 1 calc(25% - 2rem);
  max-width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.service-item img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #005b99;
}

.service-item p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Section Réalisations */
#realisations {
  padding: 3rem 1rem;
  background-color: #e6f7ff;
}

#realisations h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #005b99;
}

.realisations-gallery {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.realisations-item {
  flex: 1 1 calc(33.33% - 2rem);
  max-width: 320px;
  text-align: center;
}

.realisations-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.realisations-item p {
  font-size: 1rem;
  color: #333;
}

/* Section Témoignages */
#temoignages {
  background-color: #fff;
  padding: 3rem 1rem;
}

#temoignages h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #005b99;
}

.temoignages-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.temoignage-item {
  flex: 1 1 calc(33.33% - 2rem);
  max-width: 400px;
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
  text-align: center;
}

.temoignage-item p {
  font-style: italic;
  color: #555;
}

.temoignage-item strong {
  font-weight: bold;
  color: #333;
}

/* Call-to-Action */
.call-to-action {
  background: #005b99;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.call-to-action h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.call-to-action p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.call-to-action .btn {
  background: #ffcc00;
  color: #005b99;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

.call-to-action .btn:hover {
  background: white;
  color: #005b99;
}

/* Footer */
footer {
  background: #00264d;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Supprimer le soulignement du lien autour du logo */
.logo a {
  text-decoration: none; /* Enlève le soulignement */
  color: inherit; /* Prend la couleur du texte du parent (h1) */
}

.logo a:hover {
  text-decoration: none; /* Enlève également le soulignement au survol */
}

/* Styles pour les écrans de moins de 768px */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* Texte plus lisible sur mobile */
    padding: 10px;
  }

  header {
    flex-direction: column; /* Empile les éléments dans l'en-tête */
    align-items: center;
  }

  nav ul {
    flex-direction: column; /* Affiche le menu en colonne */
    gap: 10px;
  }

  .service, .realisation, .testimonial {
    flex-direction: column; /* Empile les éléments */
    align-items: center;
    text-align: center;
  }

  img {
    width: 100%; /* Images ajustées à l'écran */
    height: auto;
  }
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }

  .main-nav {
    display: none;
    flex-direction: column;
  }

  .main-nav.active {
    display: flex;
  }
}
