


.readonly
{
    color:rgb(186, 184, 184);
}

*   /* selecteur universel */ /* ce truc sert à éviter les decallages de padding ou margin par defaut existant sur certaines balises */
{   box-sizing : border-box;   }

header
{
    display : inline-block;
    width : 100%;
    /*margin-left: 4%;*/
    height: 350px;
    margin-bottom: 30px;
    background-image: url("../img/blue_berry_ice_cream.jpg");
    background-position: top; /* Center the image */
    background-repeat: no-repeat;
    background-size: cover;
    border-radius : 10px;
    padding : 2%;
}

#image_facture
{
    display: block;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 30%;
}

video
{
    width : 870px;
    height: 500px;
	margin-left : 10%;
    margin-right : 10%;
    margin-bottom: 50px;
}

body 
{
    font-family: Trirong, Poppins, Sans-cherif, Arial;
    margin: 0 auto;
    max-width: 1200px; /* Largeur maximale pour le contenu */
    background-color: #fff;
    padding: 20px;
}

/*     Titre du JSON data    */

h2 
{   
    font-family : Audiowide; 
    text-align : center; 
    color : blue;
    width : 60%; 
    margin : auto;
    margin-bottom: 10px; 
    border-bottom : 1px black solid; 
    text-shadow:4px 4px 4px rgb(249, 138, 157);
}

/*   Affichage JSON Data    */

.reponse_assistant   
{
    display : inline-block;
    background-color : white;
    width : 100%;
    /*margin-left: 3.75%;*/
    padding : 2%;
    border-radius : 10px;
    white-space : initial;
    text-align : justify;
    text-justify : auto; /*inter-word*/
    text-align : justify;
    justify-content : space-around; 
    border : 1px solid black;
}

.equipe_index_1
{
    text-align : center; 
}

.equipe_index_2
{
    text-align: left; 
    width: 90%;
    margin: auto;
    margin-bottom: 25px;
} 

/* Image principale (blue_berry_ice_cream) */

.main-image {
    display: block;
    width: 90%;
    max-width: 90%;
    margin: 0 auto 30px;
    border-radius: 10px;
}

/*========================  Conteneur principal pour les images secondaires [ INDEX 1 ]  ==================*/
/* sur 5 colonne avec *.jpg centré  */

.other-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Conteneur pour chaque image + texte superposé */
.image-container {
    position: relative;
    display: inline-block;
}

/* Images secondaires */
.image-container img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    display: block;
}

/* Texte superposé au [ centre ] de l'image */

.image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    pointer-events: none; /* Empêche le texte d'interférer avec les clics sur l'image */
}

/*========================  FIN DE Conteneur principal pour les images secondaires [ INDEX 1 ] ==================*/

/*========================  Conteneur principal pour les images secondaires [ INDEX 2 et 3]  ==================*/
/* Grille de produits : 4 colonnes */

.product-grid_index_2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
  }

  .product-item {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
  }
  .product-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }
  .product-details {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: left;
  }
  .product-details p {
    margin: 4px 0;
  }

/*========================  FIN DU Conteneur principal pour les images secondaires [ INDEX 3 ]  ==================*/

.product-grid_index_3 
{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ============ Flex des 3 Boutons  ====================*/

.les_bouton_index
{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-left: 3.5%;
    margin-right: 3.5%;
    padding-bottom: 10px;
    border: 1px solid #ccc;
    background-color:  #f8f8f8;
}

/* ============ FIN DU Flex des 3 Boutons  ====================*/

/* ================ FORMULAIRE =====================*/

.form_soumettre_produit {
    width: 20%;
    min-width: 200px; /* Pour éviter qu'il devienne trop étroit */
    margin-top: 10px; /* pour décaller le formulaire par rapport aux images précédentes*/
    margin-left: 20%; /* Centre le formulaire horizontalement */
    margin-bottom : 70px;
    text-align: left;
    border: 1px solid #ccc;
    padding: 2px 20px;
    border-radius: 5px;
    background-color:  #f8f8f8;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.input_produit_quantite {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.input_informations {
    width: 50%;
    padding: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

select
{
    width : 25%;
    height : 30px;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
}

/* ================ FIN DU FORMULAIRE ==================*/

/* ================ FOOTER =============================*/

footer 
{   position:static; 
    margin-top:70px;
    left:10px; 
    right:10px; 
    bottom:10px; 
    background:black; 
    text-align:center; 
    min-height:40px; 
    color:rgba(255, 255, 255, 0.5);
}

/* ================ FIN DU FOOTER ======================*/

@media (max-width: 768px)
{
    footer 
    {   position:static; 
       
    }
    .product-grid_index_2, .product-grid_index_3
    {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) 
{
    footer 
    {   position:static; 
       
    }
    .product-grid_index_2, .product-grid_index_3
    {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 30px;
    }
}	
