/* Styles généraux pour l'en-tête */
header {
  background-color: #00468C; /* Couleur de fond principale */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.menu-toggle {
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}
/* Logo */
.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  color: white;
}

.logo h1:hover {
  color: #FFD700; /* Couleur au survol */
  transition: color 0.3s ease;
}

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

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

.main-nav li {
  position: relative;
  margin-left: 20px;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.main-nav a:hover {
  background-color: #FFD700; /* Couleur au survol */
  color: #00468C; /* Contraste au survol */
}

/* Dropdown (sous-menu) */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  color: #00468C;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  display: none;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  z-index: 100;
}

.dropdown li {
  margin: 0;
  padding: 0;
}

.dropdown a {
  color: #00468C;
  padding: 10px 20px;
  display: block;
}

.dropdown a:hover {
  background-color: #00468C;
  color: white;
}

/* Affichage du sous-menu au survol */
.main-nav li:hover .dropdown {
  display: block;
}

/* Responsivité */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-direction: column;
    width: 100%;
    display: none; /* Caché par défaut */
  }

  .main-nav li {
    margin: 0;
    width: 100%;
  }

  .main-nav a {
    display: block;
    width: 100%;
    text-align: left;
  }

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

/* Section Hero */
.hero {
  position: relative;
  background: url('../images/hero-background.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
  background-attachment: fixed;
  padding: 0 20px;
}

.hero-content {
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparente pour mettre en avant le texte */
  border-radius: 8px;
  text-align: center;
}

.hero h2 {
  font-size: 3.5rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  margin-bottom: 30px;
  opacity: 0.8;
  animation: fadeInUp 1.5s ease-out;
}

.hero .btn-primary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background-color: #007bff;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-transform: uppercase;
}

.hero .btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-5px);
}

/* Animation pour faire apparaître le texte */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsivité pour petits écrans */
@media (max-width: 768px) {
  .hero h2 {
      font-size: 2.5rem;
  }

  .hero p {
      font-size: 1.1rem;
  }

  .hero .btn-primary {
      font-size: 1rem;
      padding: 12px 25px;
  }
}

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

/* Styles de base */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.catalog {
  padding: 20px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.catalog-title {
  font-size: 36px;
  color: #003366;
}

.filters {
  display: flex;
  gap: 10px;
}

.filters input,
.filters select {
  padding: 8px;
  font-size: 16px;
}

/* Sections de catégories */
.category {
  margin-bottom: 40px;
}

.category h3 {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
}

.product-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-item p {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
}

.product-item button {
  padding: 10px 20px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product-item button:hover {
  background-color: #0056b3;
}

/* Effet hover pour les images */
.product-item img:hover {
  transform: scale(1.05);
}

.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;
}
/* Footer Icônes de Réseaux Sociaux et Animation */
.site-footer {
  background-color: #003366;
  color: white;
  padding: 20px;
  text-align: center;
}

.site-footer .footer-info p {
  margin: 0;
  font-size: 14px;
}

.site-footer .footer-links ul {
  list-style-type: none;
  padding: 0;
}

.site-footer .footer-links ul li {
  display: inline;
  margin: 0 15px;
}

.site-footer .footer-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
  color: #FFD700; /* Changer la couleur au survol */
}

.site-footer .social-media {
  margin-top: 10px;
}

.site-footer .social-icon {
  font-size: 24px;
  color: white;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.site-footer .social-icon:hover {
  transform: scale(1.2); /* Agrandir l'icône au survol */
  color: #FFD700;
}

/* Section Informatique */
.product-category {
  padding: 40px;
  background-color: #f4f4f4;
}

.product-category h2 {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 20px;
}

/* Sous-catégories */
.sub-categories {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sub-category {
  width: 30%;
  background-color: white;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
  border-radius: 8px;
}

.sub-category h3 {
  text-align: center;
  font-size: 1.5rem;
  color: #003366;
  margin-bottom: 15px;
}

/* Cards de produits */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-card {
  background-color: #ffffff;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-card h4 {
  font-size: 1.2rem;
  color: #003366;
  margin: 10px 0;
}

.product-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px;
}

.product-card .btn-contact {
  background-color: #003366;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.product-card .btn-contact:hover {
  background-color: #FFD700;
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease-out;
}

.sub-category {
  animation: fadeInUp 0.8s ease-out;
}

/* Section des filtres */
.filters {
  background-color: #f9f9f9;
  padding: 30px 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  max-width: 900px; /* Centrer et limiter la largeur */
  animation: fadeInUp 1s ease-out;
}

.filter-title {
  font-size: 2rem;
  font-family: 'Roboto', sans-serif;
  color: #333;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  animation: fadeInUp 1.5s ease-out;
}

.filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Permet de passer en ligne sur petits écrans */
  gap: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 15px; /* Espacement entre le label et le menu déroulant */
}

.filter-group label {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}

.filter-select {
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #555;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-select:hover,
.filter-select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivité pour petits écrans */
@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    gap: 15px;
  }

  .filter-group {
    justify-content: center;
    gap: 10px;
  }

  .filter-group label {
    font-size: 1rem;
  }

  .filter-select {
    width: 100%; /* Le menu déroulant prendra toute la largeur sur petits écrans */
  }
}

/* Catalogue */
.catalog {
  padding: 40px 20px;
  background-color: #fff;
}

.catalog-title {
  text-align: center;
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 20px;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
}

.product-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-item p {
  margin: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.product-item button {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.product-item button:hover {
  background-color: #0056b3;
}

.product-item img:hover {
  transform: scale(1.05);
}

/* Animation pour faire apparaître le titre et les filtres */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsivité pour petits écrans */
@media (max-width: 768px) {
  .filter-title {
      font-size: 2rem;
  }

  .filter-container {
      flex-direction: column;
      gap: 15px;
  }

  .filter-group {
      width: 100%;
  }
}

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