/* Styles de base */

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

.about-header {
  position: relative;
  background: url('../images/about-header.jpg') center/cover no-repeat; /* Image d'arrière-plan */
  color: white;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

.about-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Superposition sombre pour rendre le texte lisible */
  z-index: 1;
}

.about-header .container {
  position: relative;
  z-index: 2; /* Assurez-vous que le texte est au-dessus de l'overlay */
}

.about-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out;
}

.about-header p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0;
  animation: fadeInUp 1.5s ease-out;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivité */
@media (max-width: 768px) {
  .about-header {
    padding: 40px 10px;
    min-height: 250px;
  }

  .about-header h1 {
    font-size: 2.2rem;
  }

  .about-header p {
    font-size: 1.2rem;
  }
}


.service-cards {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.service-card {
  flex: 1;
  max-width: 300px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.cta {
  text-align: center;
  background-color: #0055cc;
  color: #fff;
}

.cta a.btn {
  display: inline-block;
  background-color: #003366;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.cta a.btn:hover {
  background-color: #002244;
}

/* Section Contact */
.contact {
  padding: 50px 0;
  text-align: center;
  background-color: #ffffff;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact .btn {
  background-color: #FFD700;
  color: #00468C;
  padding: 10px 20px;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}

.contact .btn:hover {
  background-color: #003366;
  color: white;
}

/* Footer */
footer {
  background-color: #00468C;
  color: white;
  text-align: center;
  padding: 20px;
}

footer p {
  font-size: 1rem;
}

/* Responsivité */
@media (max-width: 768px) {
  .main-header h1 {
    font-size: 2rem;
  }
}

  .main-header p {
    font-size: 1rem;
  }

/* une animation légère pour les cartes des services */
.service-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .service-cards {
    flex-direction: column;
    gap: 10px;
  }

  .service-card {
    max-width: 100%;
  }
}

/* la page est adaptée aux petits écrans */
@media (max-width: 768px) {
  .service-cards {
    flex-direction: column;
    gap: 10px;
  }

  .service-card {
    max-width: 100%;
  }
}

/* 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;
  }
}
