/* Réinitialisation des styles de base */

/* Corps de la page */

/* Style du header */
#view-cart-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#view-cart-button:hover {
    background-color: #45a049;
}

/* Style de la galerie de photos */
#lightbox-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-items: center;
}

.photo {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.photo:hover {
    transform: scale(1.05);
}

.photo:hover img {
    transform: scale(1.1);
}

/* Style de la modale du panier */
.modal {
    display: none;  /* Cachée par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Fond semi-transparent */
}

.modal-content {
    background-color: white;
    margin: 20% auto;
	margin-top:30%;
    padding: 20px;
    width: 80%; /* Largeur de la modale */
    max-width: 500px;color:#333333;
}
input, select{
  width: auto;
  padding: 10px;
  margin: 5px 0 22px 0;
  border: none;
  background: #eee;   color: #4a4a4a;
}
label {color: #333;}/* color: #4a4a4a;*/
#delivery-form label {color: #d9d9d9;}
.close-btn {
    color: #b15a5a;
    font-size: 38px;
    font-weight: bold;
    top: 10px;
    right: 25px;
    cursor: pointer; float: right;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Stylez le bouton de connexion */
      button{
        background-color: #45a049;
       color: #eee;
        padding: 12px 20px;
        border: none;
        cursor: pointer;
        width: auto;
        margin-bottom: 10px;
        opacity: 0.8;text-transform: uppercase;
      }
	  
/* Planez les effets pour les boutons */
      button:hover {opacity: 1;}
	 button:focus {background-color: #ddd;outline: none;}
/* popup */
.photo-popup{
        position: relative;
        text-align: center;
        width: 100%;
      }
	  /*  display: none;*/
.form-popup {
        max-width: 300px;
        padding: 20px;
        background-color: #fff;
        position: fixed;
        left: 45%;
        top: 10%;
        transform: translate(-45%, 5%);
        border: 2px solid #666;
        z-index: 9;	
      }
.form-popup h3{    margin-top: 10px;    color: #4a4a4a;}  
#photo-nombre {width: 40px; }

#view-cart-button, #checkout-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#view-cart-button:hover, #checkout-btn:hover {
    background-color: #45a049;
}

/* Style des éléments du panier */
#cart-items ul {
    list-style-type: none;
    padding: 0;
}

#cart-items li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#cart-items img {
    width: 50px;
    height: auto;
    margin-right: 15px;
}

#cart-items strong {
    margin-right: 10px;
    color: #333;
}

/* Style des boutons dans le panier */
#checkout-btn {
    margin-top: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

#checkout-btn:hover {
    background-color: #45a049;
}

/* Style du formulaire de livraison */
#delivery-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#delivery-form input, #delivery-form textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

#delivery-form textarea {
    height: 100px;
}
#order-summary {}

/* Style de l'en-tête et des titres */
h2, h3 {
    color: #333;
}

/* Responsive Design pour les petits écrans */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    #lightbox-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .photo img {
        /* Ajuster la taille des images  height: 200px;*/
    }

    #cart-items img {
        width: 30px;
    }
#lightbox-gallery {
    display: grid;
    grid-template-columns: 1fr;

    
}
figure img{height: auto;width: 100%;}
}


