/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fffff;  
    height: auto;
}



/* Conteneur principal */
#commande-details {
    max-width: 600px;
    margin: 0 auto;
    background: transparent ;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Titres */
main h1, h2, h3 {
    text-align: center;
    color: #333;
}

/* Paragraphe d'informations */
p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Liste des produits */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #fafafa;
    margin: 5px 0;
    padding: 10px;
    border-left: 4px solid #27ae60;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    #commande-details {
        width: 90%;
        padding: 15px;
    }

    p, ul li {
        font-size: 14px;
    }
}
#voir-commande {
    display : flex;
    padding: 5px;
}

/*rechercher commandes*/
/* Style du formulaire de recherche */
#search-phone {
    padding: 10px;
    border: 2px solid #007bff;
    border-radius: 5px;
    font-size: 16px;
    width: 150px;
}

#voir-commande button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    padding-left:0;
}

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

/* Style du conteneur des commandes */
#commandes-container {
background: transparent ;
    margin-top: 20px;
}

/* Style de chaque commande */

.commande h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.commande p {
    font-size: 16px;
    margin: 5px 0;
}

.commande ul {
    list-style: none;
    padding: 0;
}

.commande ul li {
    background: #e3f2fd;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
}



/* Animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Appliquer l'animation aux commandes */




.commande {
    background: transparent ;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Effet d'animation pour la liste des produits */
.commande ul li {
    background: #e3f2fd;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
    animation-delay: 0.3s;
}


/* Style du bouton vibrant */
#voirautreproduit {
            padding: 10px 10px;
            font-size: 20px;
            background-color: #378ada;
            color: white;
            border: none;
            cursor: pointer;
            border-radius: 15px;
            position: relative;
            animation: vibration 1.4s infinite;
            font-weight: 500;
        }

        /* Animation de vibration */
        @keyframes vibration {
            0% { transform: translate(0, 0); }
            25% { transform: translate(-5px); }
            50% { transform: translate(5px); }
            75% { transform: translate(-5px); }
            100% { transform: translate(5px); }
        } 
        
        
#voirautreproduit:hover {
    background: #e65c00;
}

main {
  /*  flex: 1; /*prend tout l'espace disponible */
   margin-top:70px;
   padding: 0;
  text-align: center;
background-color: transparent ;
height: auto;
}

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



#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 */
}


