/*
    Auteur : Duarte Silva Correia
    Date : 18.12.2024
    Description : Ceci est le code pour les styles du site web.
*/

body {
  font-family: Arial, Helvetica, sans-serif;
  background-image: url("../images/web_background/background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 0;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* Barre de navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(119, 119, 119);
  padding: 10px 20px;
  position: relative;
  border-radius: 10px;
}

/* Logo de la barre de navigation */
.navbar-logo {
  height: 50px;
  max-width: 100px;
  object-fit: contain;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  margin-left: 15px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
  /* Effet au survol */
}

nav a:hover {
  background-color: rgb(173, 173, 173);
  color: #fff;
}

/* Section de bienvenue */
.welcome-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
}

.welcome-text img {
  width: 45%;
  border-radius: 20px;
}

.text-container {
  width: 50%;
}

/* Conteneur des services, produits et autres liens */
.services-container,
.produits-container,
.custom-link-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Style des éléments de service ou produit */
.service-item,
.produits-item {
  text-align: center;
  margin: 20px;
  transition: transform 0.3s ease;
  /* Effet d'agrandissement au survol */
}

.services,
.produits {
  width: 300px;
  height: auto;
  border-radius: 35px;
  /* Coins arrondis pour les images */
}

.service-description,
.produits-description {
  margin-top: 10px;
  font-size: 14px;
  color: #000000;
  /* Couleur du texte sous l'image */
}

/* Effet d'agrandissement au survol */
.service-item:hover,
.produits-item:hover {
  transform: scale(1.1);
}

/* Style du footer */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Style des liens personnalisés */
.custom-link {
  text-decoration: none;
  background-color: rgba(119, 119, 119, 0.616);
  color: #ffffff;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.custom-link:hover {
  background-color: rgb(173, 173, 173);
  color: #fff;
}

.custom-link-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Style des informations de contact */
.contact-info {
  text-align: left;
  margin-bottom: 30px;
  background-color: #0066cc;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.contact-info a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #004d99;
}

/* Liens sociaux */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  font-size: 1.2rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #0066cc;
}

/* Style des sections de texte de contact */
.contact-text {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  text-align: justify;
}

/* Classe pour l'animation fade-in */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Classe pour l'animation fade-out */
.fade-out {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

/* Responsivité pour les petits écrans (tablettes et smartphones) */
@media screen and (max-width: 768px) {
  .welcome-text {
    flex-direction: column;
    text-align: center;
  }

  .welcome-text img,
  .text-container {
    width: 100%;
    margin-bottom: 20px;
  }

  nav {
    flex-direction: column;
    text-align: center;
  }

  .service-item,
  .produits-item {
    width: 100%;
    margin: 15px 0;
  }

  .services,
  .produits {
    width: 100%;
  }

  .contact-text {
    flex-direction: column;
    text-align: center;
  }

  footer {
    padding: 20px;
  }

  .image-container {
    display: none;
  }

  .text2-container {
    width: 100%;
  }

}