body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f4f4f4; /* Arrière-plan léger pour le corps */
}

header {
  background: #0073e6;
  color: #fff;
  padding: 20px 10px;
  text-align: center;
}

header nav {
  margin-bottom: 20px;
}

header nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a:focus {
  color: #ffcc00; /* Ajout d'une couleur de survol accessible */
  outline: none; /* Enlève l'effet de bordure par défaut du focus */
}

.service-header h1 {
  margin: 0;
  font-size: 2.5rem;
}

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

main {
  padding: 20px;
}

h2 {
  color: #333;
  font-size: 2rem;
  margin-top: 20px;
  text-align: center;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.service {
  border: 1px solid #ddd;
  margin: 10px;
  padding: 15px;
  width: 300px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.3s ease; /* Transition ajoutée pour l'effet de shadow */
}

.service:hover,
.service:focus-within {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre pour améliorer l'effet */
}

.service img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.service h3 {
  margin: 10px 0;
  color: #0073e6;
}

.service p {
  font-size: 0.9rem;
  color: #555;
}

.call-to-action {
  background: #0073e6;
  color: #fff;
  text-align: center;
  padding: 30px 10px;
  margin-top: 30px;
}

.call-to-action .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #fff;
  color: #0073e6;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease; /* Ajout d'une transition */
}

.call-to-action .btn:hover,
.call-to-action .btn:focus {
  background: #005bb5;
  color: #fff;
  outline: none; /* Enlève le focus de bordure sur le bouton */
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .services-list {
    flex-direction: column;
  }

  .service {
    width: 100%;
    margin: 15px 0; /* Réduction de l'espace entre les services sur mobile */
  }
}

@media (max-width: 480px) {
  .service-header h1 {
    font-size: 2rem; /* Ajustement de la taille du titre pour les petits écrans */
  }

  .service-header p {
    font-size: 1rem; /* Ajustement de la taille du texte */
  }
}

.maintenance-section {
  background-color: #f8f9fa;
  padding: 40px 20px;
  text-align: center;
}

.maintenance-section h2 {
  font-size: 2.5rem;
  color: #0073e6;
  margin-bottom: 20px;
}

.maintenance-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.maintenance-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.maintenance-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.maintenance-icon {
  max-width: 60px;
  margin-bottom: 15px;
}

.maintenance-item h3 {
  color: #0073e6;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

.btn-maintenance {
  background-color: #007BFF;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-maintenance:hover {
  background-color: #0056b3;
}


.btn-maintenance:hover {
  background-color: #005bb5;
  transition: background-color 0.3s ease;
}
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service {
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Styles généraux pour l'en-tête */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #004080; /* Bleu AMS SERVICE SARL */
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* Logo */
header .logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Navigation principale */
nav ul.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

nav ul.main-nav li {
  position: relative; /* Nécessaire pour le positionnement du dropdown */
  margin-left: 20px;
}

nav ul.main-nav li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 8px 12px;
  transition: background-color 0.3s;
}

nav ul.main-nav li a:hover {
  background-color: #0066cc;
  border-radius: 5px;
}

/* Dropdown menu */
nav ul.main-nav li .dropdown {
  display: none; /* Par défaut, masqué */
  position: absolute;
  top: 100%; /* Juste en dessous du lien parent */
  left: 0;
  background-color: #004080;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul.main-nav li:hover .dropdown {
  display: block; /* Affiche le menu déroulant au survol */
}

nav ul.main-nav li .dropdown li {
  margin: 0;
}

nav ul.main-nav li .dropdown li a {
  padding: 10px 15px;
  display: block;
  color: #fff;
  font-weight: 400;
}

nav ul.main-nav li .dropdown li a:hover {
  background-color: #0066cc;
  color: #fff;
}

/* Section Intégrateur de Solutions Informatiques */
#solutions {
  background-color: #f8f9fa; /* Couleur de fond subtile */
  padding: 40px 20px;
  text-align: center;
  border-bottom: 2px solid #ddd; /* Séparateur élégant */
}

#solutions h2 {
  font-size: 2rem;
  color: #007BFF; /* Bleu pour mettre en avant */
  margin-bottom: 20px;
}

#solutions p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 30px;
}

#solutions .solutions-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 600px;
  text-align: left;
}

#solutions .solutions-list li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

#solutions .solutions-list li::before {
  content: "✔"; /* Check mark icon */
  color: #007BFF;
  font-weight: bold;
  position: absolute;
  left: 0;
}

#solutions .btn-solutions {
  display: inline-block;
  background-color: #007BFF;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#solutions .btn-solutions:hover {
  background-color: #0056b3; /* Couleur plus foncée au survol */
}

/* Section Intro */
#intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f9f9f9;
  padding: 50px 20px;
  gap: 30px;
  border-bottom: 2px solid #ddd; /* Séparateur */
}

#intro .intro-content {
  max-width: 50%;
  text-align: left;
}

#intro h2 {
  font-size: 2.5rem;
  color: #007BFF;
  margin-bottom: 20px;
}

#intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

#intro .btn-intro {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#intro .btn-intro:hover {
  background-color: #0056b3; /* Couleur au survol */
}

#intro .intro-image {
  max-width: 45%;
}

#intro .intro-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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