body {
    width: 60%; /* Remplacez 80% par la largeur souhaitée en pourcentage ou en pixels */
    margin: 0 auto; /* Pour centrer le contenu horizontalement */
    font-family: "Inconsolata", monospace;
    background-color: #fff;
    color: #333;
    font-size: 20px; /* Ajustez la taille de police selon vos préférences */
    cursor: url('curseur.png')25 25, auto;,
}


header {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

header h1 {
    margin: 0;

}

h2 {
    background-color: #eaca69;
    color: #000;
    display: inline-block;
    padding: 5px 10px;
    margin: 10px 0 0 0; /* Ajoutez une marge de 10 pixels au-dessus */

    font-size: 30px; /* Ajustez la taille de police selon vos préférences */
}

a {
    color: #eaca69; /* Couleur jaune */
    text-decoration: underline;
    font-weight: bold; /* Met en gras le texte */

}

a:hover {
    text-decoration: underline;
}


nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;

}

nav ul li a {
    color: #eaca69; /* Couleur jaune */
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#hero img {
    max-width: 100%;
    height: auto;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

section {
    margin-bottom: 2em;
    margin: 10px 0 0 0; /* Ajoutez une marge de 10 pixels au-dessus */

}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjust the minmax values as needed */
    gap: 20px; /* Space between items */
}


.product {
  /* Style pour chaque élément de produit */
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  min-width: 150px; /* Largeur minimale pour chaque élément de produit */
}


.product img {
    max-width: 100%;
    height: auto;
}

.buy-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #eaca69;
    color: #000;
    text-decoration: none;
    margin-top: 10px;

}

.buy-button:hover {
    background-color: #white;
}

.product img {
    transition: transform 0.5s ease;
}

.product img:hover {
    transform: scale(1.5); /* Ajustez selon vos besoins */
}


footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

@media screen and (max-width: 768px) {
    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .hero-text {
        position: static;
        transform: none;
        color: #000;
    }

    body {
        width: 80%; /* Largeur réduite pour les écrans d'ordinateur */
    }
}
