/* Général */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container2 {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligner les éléments du formulaire à gauche */
    width: 100%;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.form-label {
    margin-bottom: 0; /* Supprimer la marge inférieure */
    font-weight: bold;
    color: #555;
    width: 20%; /* Largeur fixe pour les labels */
    text-align: right; /* Aligner les labels à droite */
    margin-right: 10px; /* Espacement entre le label et l'input */
}

#order-form input[type="text"],
#order-form input[type="email"],
#order-form input[type="date"],
#order-form input[type="time"],
#order-form textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 80%; /* Largeur des inputs */
    max-width: 500px;
    box-sizing: border-box;
    height: 40px;
}

#order-form textarea {
    height: auto; /* Laissez la hauteur du textarea s'adapter à son contenu */
}

/* Hauteur fixe pour textarea en dehors du formulaire */
textarea {
    height: 100px; /* Hauteur fixe pour textarea */
    resize: vertical; /* Permettre le redimensionnement vertical uniquement */
}

/* Groupes date et heure */
.datetime-group {
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    gap: 10px; /* Espacement entre les champs */
    width: 80%; /* Ajuster la largeur selon les besoins */
}

.datetime-group input {
    width: 120px; /* Largeur fixe pour les champs de date et d'heure */
    height: 35px; /* Hauteur fixe pour les champs de date et d'heure */
}

/* Bouton d'envoi */
.form-submit {
    display: flex;
    justify-content: center; /* Centrer le bouton de soumission */
    width: 100%; /* Occuper toute la largeur disponible */
}

form input[type="submit"] {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto; /* Laisser le bouton ajuster sa taille automatiquement */
}

input[type="submit"]:hover {
    background-color: #218838;
}

/* Validation des champs */
.is-invalid {
    border-color: red;
}

/* Panier */
#order-content ul {
    list-style-type: none;
    padding: 0;
}

#order-content li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#order-content img.cart-img {
    max-width: 80px;
    max-height: 80px;
    margin-right: 15px;
    border-radius: 5px;
    object-fit: cover;
}

.cart-product-title {
    font-weight: bold;
    color: #333;
}

.cart-price {
    color: #888;
}

.cart-quantity1 {
    color: #666;
}

#order-total {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    text-align: right;
    color: #333;
}

/* Messages */
.alert-success,
.alert-danger {
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}
.msg{
    margin: 30px;
    color: red;
    font-size: 1.2rem;
    font-weight: bold;
}

