/* Réinitialisation des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* ---- NAVBAR ---- */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background-color: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    margin: 0px 80px;
}
.logo {
    text-align: center;
}
.logo img {
    height: 40px;
}

h2 {
    text-align: center;
}

.navbar a:hover {
    color: chocolate;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.75s;
}



/* ---- SECTION ACTUALITÉS ---- */

#PRODUIT {

    background-color: lightpink;

    padding: 150px 0 0px; /* Augmente l'espace en haut pour ne pas cacher le titre */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;

}

/* Pour bien espacé le titre produit */

#PRODUIT h2 {

    font-size: 32px;
    margin-bottom: 40px;

}

/* Grille des actualités */

.produit-container {

    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 20px; /* Espacement entre les cartes */
    width: 90%;
    max-width: 1200px;
    flex-grow: 1;
    min-height: 80vh; /* Assure une hauteur suffisante pour ne pas toucher le footer */
    padding-bottom: 20px; /* Ajoute un espace en bas */

}

/* Style des cartes */

.produit-carte {

    background-color: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Empêche les cartes de s'étirer trop */

}

/* Images carrées */

.produit-carte img {

    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;

}

/* Effet au survol */

.produit-carte:hover {

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);

}

/* ---- RESPONSIVE ---- */

@media (max-width: 1024px) {

    .produit-container {

        grid-template-columns: repeat(2, 1fr);

    }

}

@media (max-width: 768px) {

    .produit-container {

        grid-template-columns: repeat(1, 1fr);

    }

}

/* ---- STRUCTURE GLOBALE ---- */

html, body {

    height: 100%;
    margin: 0;
    padding: 0;

}

body {

    display: flex;
    flex-direction: column;
    min-height: 100%;

}

main {

    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 0 auto; /* Ajouté pour éviter l'espace sous le footer */

}

/* ---- FOOTER ---- */

.footer {

    background-color: #333333;
    color: white;
    padding: 25px 30px;
    text-align: center;
    width: 100%;
    margin-top: auto;
    position: relative; /* Ajouté pour éviter l'espace rose */
    bottom: 0;
    left: 0;

}

/* Liens du footer */

.footer-links ul {

    list-style: none;
    display: flex;
    gap: 35px;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;

}

.footer-links a {

    color: white;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 5px;
    transition: color 0.75s;

}

.footer-links a:hover {

    color: chocolate;

}