body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

header h1 {
    display: inline;
    margin: 0;
    padding-left: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

nav ul li {
    margin-left: 20px;
}

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

nav ul li a:hover {
    color: #ff6347;
}

.hero {
    background: url('background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h2, .hero p {
    position: relative;
    z-index: 2;
}

.hero h2 {
    margin: 0 0 10px;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2em;
    margin: 20px 0;
}

.produits {
    padding: 50px 0;
    background-color: #fff;
}

.produit-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.produit {
    flex: 1 1 calc(33.333% - 20px);
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    text-align: center; /* Center align text and images */
}

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

.produit img {
    max-width: 100%;
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensures images cover the set height without distortion */
    border-radius: 8px;
}

.produit h3 {
    margin: 10px 0;
    font-size: 1.5em;
}

.produit p {
    font-size: 1em;
    line-height: 1.5;
}

footer {
    background-color: #333; /* Couleur de fond */
    color: #fff; /* Couleur du texte */
    text-align: center; /* Centrer le texte */
    padding: 20px; /* Espacement intérieur */
    position: fixed; /* Fixe le pied de page en bas */
    width: 100%; /* Occupe toute la largeur */
    bottom: 0; /* Colle le pied de page en bas */
  }
  
  footer p {
    margin: 0; /* Supprime les marges par défaut */
  }

/* Responsive design adjustments */
@media (max-width: 1024px) {
    .produit {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .produit {
        flex: 1 1 100%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#buyForm {
    display: flex;
    flex-direction: column;
}

#buyForm label {
    margin-top: 10px;
}

#buyForm input, #buyForm button {
    margin-top: 5px;
    padding: 10px;
}

#buyForm button {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#buyForm button:hover {
    background-color: #0056b3;
}

.content-section {
    padding: 50px 0;
}

#home {
    background-color: #f4f4f4;
}

#about, #contact {
    background-color: #eaeaea;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007BFF;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

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

.intro-text {
    font-size: 1.2em; /* Augmente la taille de la police */
    line-height: 1.6; /* Améliore l'espacement entre les lignes */
    color: #333; /* Couleur de texte pour un meilleur contraste */
    margin: 20px 0; /* Espacement autour du paragraphe */
    max-width: 800px; /* Limite la largeur du texte pour une meilleure lecture */
    text-align: justify; /* Justifie le texte pour une apparence nette */
}
.buy-button {
    background-color: #1e90ff; /* Bleu clair */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 20px; /* Arrondir les bords */
  }
  
  .buy-button:hover {
    background-color: #4169E1; /* Bleu foncé au survol */
  }
  #presentation .container {
    text-align: center;
  }
  
  #presentation h2 {
    font-size: 32px; /* Taille de la police augmentée */
    margin-bottom: 20px;
    color: #333;
    font-family: 'Arial Black', sans-serif;
  }
  
  #presentation p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
  }
  
  #presentation p {
    animation: fadeIn 1s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  #diaporama .slideshow {
  text-align: center; /* Centrer horizontalement le contenu */
}

#diaporama .slideshow img {
  max-width: 100%; /* Pour s'assurer que les images ne dépassent pas la largeur de leur conteneur */
  height: auto; /* Pour maintenir le ratio hauteur-largeur de l'image */
  display: inline-block; /* Afficher les images comme des éléments en ligne */
  margin: 0 auto; /* Pour centrer les images horizontalement */
}

.container {
    width: 80%;
    margin: 0 auto;
  }
  
  #contactForm {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  #contactForm label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
  }
  
  #contactForm input[type="text"],
  #contactForm input[type="email"],
  #contactForm textarea {
    width: 80%;
    padding: 10px;
    margin-bottom: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  #contactForm textarea {
    height: 150px;
  }
  
  #contactForm button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #contactForm button[type="submit"]:hover {
    background-color: #0056b3;
  }
  #signupForm {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  #signupForm h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  
  #signupForm label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
  }
  
  #signupForm input[type="text"],
  #signupForm input[type="email"],
  #signupForm input[type="password"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  #signupForm button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
  }
  
  #signupForm button[type="submit"]:hover {
    background-color: #0056b3;
  }
  #loginForm {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  #loginForm h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  
  #loginForm label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
  }
  
  #loginForm input[type="text"],
  #loginForm input[type="password"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  #loginForm button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
  }
  
  #loginForm button[type="submit"]:hover {
    background-color: #0056b3;
  }