body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    background-color:  #fffff;
    flex-direction: column;
    height: 100%;
   
   
}

header {
    background-color:green ;
    color: white;
    padding: 0;
    text-align: center;
    font-size: 13px;
    opacity:0.9;
}


.lido {
    color: #ff892b ; /* Lido en noir */
    font-weight: bold;
    
}

.select {
    color:#ff892b ; /* Select en bleu */
    font-weight: bold;
}

 .acceuil-icon {
     position: absolute;
     text-decoration: none;
     top: 10px;
     left: 2px;
     font-size: 20px;
     color: white;
 }



#produits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    position: relative;
    left: 0;
    right: 0;
    text-align: center;
}

.produit {
    background: transparent;
    border-radius: 8px;
    border: 2px solid green ;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    padding: 3px;
    text-align: center;
    margin: 3px;

    width: calc(25% - 12px);

    box-sizing: border-box;

    /* IMPORTANT */
    display: flex;
    flex-direction: column;
}

.produit img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Tablette : 3 produits par ligne */
@media (max-width: 1024px) {
    .produit {
        width: calc(33.33% - 12px);
    }
}

/* Mobile : 2 produits par ligne */
@media (max-width: 600px) {
    .produit {
        width: calc(50% - 12px);
    }
}






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



.prix {
    display: flex;
    justify-content: center; /* Aligner les prix horizontalement */
    align-items: center;
    gap: 10px; /* Espace entre les prix */
    margin-top: 10px; /* Espacement entre l'image et les prix */
}



.prix-original {
    text-decoration: line-through; /* Barrer le prix original */
    color: red;
    font-size: 15px;
}

.prix-actuel {
    color: green;
    font-size: 15px;
    font-weight: bold;
}

footer {
   position: relative;
   left: 0;
   bottom: 0;
   right: 0;
   text-align:center;
    background-color: green;
    opacity: 0.9;
}
footer p {
    color: white;
    text-align:center;
    padding: 10px 5px;
}

/* animation avant chargement des produits */
#loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 50px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*catégorie */
#categories-container {
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    background-color: white ;
    padding: 0px 5px;
    gap: 10px;
    display: flex;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#categories-container::-webkit-scrollbar {
    display: none;
}

.categorie-btn {
    padding: 6px 12px;
    background-color: black ;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 18px;
}

.categorie-btn:hover {
    background-color: #129ededf;
}




#touslesdetails {
  margin: 10px auto;     /* centre horizontalement */
  padding: 3px;
  border: 1px solid #fffff;
  border-radius: 12px;
  background: #fffff;
  max-width: 500px;      /* largeur max sur PC */
  width: 100%;           /* occupe toute la largeur sur mobile */
  box-sizing: border-box;/* pour inclure les bordures dans la largeur */
}

.actions-produit {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;

    box-sizing: border-box;

    /* IMPORTANT */
    margin-top: auto;

    margin-bottom: 8px;
}

.btn-acheter {
    width: calc(100% - 58px);
    flex: none;

    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 8px;

    box-sizing: border-box;

    border: none;
    border-radius: 10px;

    background: #000;
    color: white;

    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    pointer-events: none;
}

.btn-whatsapp {
    width: 40px;
    height: 38px;

    flex: none;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    box-sizing: border-box;

    border: none;
    border-radius: 10px;

    background: #25D366;

    pointer-events: none;
}

.btn-acheter i {
    font-size: 22px;
    line-height: 1;
}

.btn-whatsapp i {
    font-size: 32px;
    line-height: 1;
}

.titre-page {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Descend les 3 éléments ensemble */
    transform: translateY(2px);
}

/* Titre */
.titre-page h1 {
    margin: 0;
}

/* Bouton accueil */
.titre-page .acceuil-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Bouton mode sombre */
.titre-page #dark-mode-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);

    background: transparent;
    border: none;
    padding: 0;
    margin: 0;

    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
}


