
/* Panier */
.panier {
    max-width: 1000px;
    margin: 2em auto;
    padding: 1em;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}
th, td {
    padding: 1em;
    border-bottom: 1px solid #ddd;
    text-align: left;
}
th {
    background: #f5f5f5;
}

.cartes-panier {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

.carte-article {
    border-radius: 10px;
    padding: 15px;
    background-color: #ffffff68;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1em;
}

.carte-entete {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.img-produit {
    width: 60px;
    height: auto;
    border-radius: 6px;
    margin-right: 15px;
}

.nom-produit {
    font-weight: bold;
    font-size: 1.1em;
}

.carte-corps > div {
    margin: 5px 0;
}

.carte-quantite input {
    width: 60px;
    padding: 4px;
    margin-left: 8px;
}

.carte-action {
    margin-top: 10px;
}

/* Responsive : passer à 2 ou 3 colonnes si assez de place */
@media (min-width: 700px) {
    .cartes-panier {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cartes-panier {
        grid-template-columns: repeat(1, 1fr);
    }
}





.img-produit {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.actions {
    text-align: right;
}
.total {
    text-align: right;
    font-weight: bold;
    font-size: 1.2em;
}
.btn {
    padding: 0.6em 1.2em;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}
.btn-danger {
    background: #dc3545;
}

.modification_commande{
    font-weight: bold !important;
    background-color: #aafeff !important;
}

.validation_commande{
    color: white !important;
    font-weight: bold !important;
    background-color: #22a55b !important;
}


.form-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.form-container h1 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #333;
}

.form-container form h2 {
    margin-bottom: 1em;
    font-size: 1.2em;
    color: #555;
}

.form-container form select,
.form-container form textarea,
.form-container form input[type="time"],
.form-container form input[type="text"] {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1.2em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

.form-container form textarea {
    resize: vertical;
}

.form-container label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.3em;
    color: #444;
}

.form-container button[type="submit"] {
    display: block;
    width: 100%;
    padding: 0.9em;
    font-size: 1.1em;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-container button[type="submit"]:hover {
    background: #0056b3;
}

/* Zones conditionnelles */
#zone-adresse,
#zone-retrait,
#zone-rdv {
    padding: 1em;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1.5em;
}


.checkout-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2em;
    max-width: 80%;
    margin: 2em auto;
    padding: 2em;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #ddd;
    overflow: auto;
}


.checkout-left {
    flex: 1 1 65%;
}

.checkout-right {
    flex: 1 1 30%;
}

.checkout-left,
.checkout-right {
    min-width: 18em;
}

.ligne-produit {
    margin-bottom: 1em;
}

.checkout-right {
    background: #fff;
    border: 1px solid #ccc;
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}



/* Confirmation de commande ***********************/
.confirmation-container {
    max-width: 600px;
    margin: 3em auto;
    background: #f8f8f8;
    padding: 2em;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.confirmation-container h1 {
    margin-bottom: 1em;
}
.confirmation-container .btn {
    margin-top: 2em;
    display: inline-block;
    background: #2d9f32;
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 8px;
    text-decoration: none;
}
.confirmation-container .btn:hover {
    background: #256728;
}
