/* Style de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column; /* Permet d'empiler les éléments */
    align-items: center;
    min-height: 100vh;
    padding: 20px; /* Ajoute un espace pour aérer le contenu */
}

/* Style des contrôles */
.controls {
    position: fixed; /* Fixe la position */
    top: 0; /* Positionnement en haut */
    left: 0; /* Aligne à gauche */
    width: 100%; /* Prend toute la largeur */
    background-color: #f4f4f4; /* Fond pour rendre lisible */
    padding: 10px; /* Espace autour du contenu */
    text-align: center; /* Centrage horizontal */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Légère ombre pour démarquer */
    z-index: 10; /* Assure que c'est au-dessus des autres éléments */
}

.controls label {
    margin-right: 10px;
    font-size: 16px;
}

select {
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Conteneur des produits */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px; /* Compense la hauteur des contrôles */
    z-index: 5;
}

/* Style des produits */
.product {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

h3 {
    margin: 15px 0;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.percentage {
    font-size: 16px;
    color: #FF6347;
    margin: 10px 0;
}

.link-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.link-btn:hover {
    background-color: #0056b3;
}

#gauche {
    text-align: left;
}

.background-image {
    position: fixed; /* Reste en arrière-plan et ne bouge pas au scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Hauteur de l'écran */
    background-image: url('image-small.jpg'); /* Image par défaut */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* S'assure que ça reste derrière le contenu */
}

/* Média-queries pour différentes tailles d'écran */
@media (min-width: 768px) {
    
}

@media (max-width: 768px) {
    .product {
        width: 90%;
    }

    .controls {
        padding: 10px;
    }

    .background-image {
        background-image: url('image-medium.jpg');
    }
}

@media (min-width: 1200px) {
    .background-image {
        background-image: url('image-large.jpg');
    }
}


