/**
 * checkout.css
 * Styles pour panier.php et commande_confirmee.php : récapitulatif,
 * formulaire coordonnées, boutons de paiement. Reprend la palette déjà
 * utilisée dans style.css (bordeaux #8e1c4a, vert #1e7a35/#8dc63f).
 * Charger ce fichier APRÈS style.css.
 */

/* ---------- Révélation AJAX du bloc paiement ---------- */
.bloc-paiement.reveal {
    animation: fadeInPaiement 0.4s ease-out;
}

@keyframes fadeInPaiement {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Récapitulatif ---------- */
.recap-commande {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 18px 20px;
    margin-top: 24px;
}

.recap-commande h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.recap-ligne {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 15px;
}

.recap-ligne-secondaire {
    color: #777;
    font-size: 13px;
}

.recap-total {
    border-top: 2px solid #eee;
    margin-top: 6px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: bold;
}

.recap-acompte-info {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #ddd;
}

.recap-acompte-info p {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
}

.recap-montant-acompte {
    color: #8e1c4a;
    font-weight: bold;
    font-size: 17px;
}

/* ---------- Coordonnées client ---------- */
.bloc-coordonnees {
    margin-top: 24px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 18px 20px;
}

.bloc-coordonnees h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.coordonnees-ok {
    color: #1e7a35;
    font-size: 14px;
    margin: 0 0 14px;
}

.form-coordonnees {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-coordonnees label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #555;
    font-weight: bold;
}

.form-coordonnees input[type="text"],
.form-coordonnees input[type="email"],
.form-coordonnees input[type="tel"],
.form-coordonnees textarea {
    font-family: inherit;
    font-size: 15px;
    font-weight: normal;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 12px;
    resize: vertical;
}

.form-coordonnees input:focus,
.form-coordonnees textarea:focus {
    outline: none;
    border-color: #8e1c4a;
}

.case-conditions {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px !important;
    font-weight: normal !important;
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.5;
}

.bloc-optionnel {
    border-top: 1px dashed #ddd;
    padding-top: 14px;
    margin-top: 4px;
	left:0;
	flex-shrink: 0
}

.bloc-optionnel-titre {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: bold;
    color: #8e1c4a;
}

.case-message-toggle {
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    font-weight: normal !important;
    font-size: 14px !important;
    color: #444 !important;
}

.bloc-message-destinataire {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
    padding: 14px;
    background: #f7f7f7;
    border-radius: 4px;
}

.case-conditions input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}

.btn-coordonnees {
    align-self: flex-start;
    background: #8dc63f;
    color: #fff;
    border: none;
    padding: 12px 22px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-coordonnees:hover {
    background: #74a832;
}

/* ---------- Paiement ---------- */
.bloc-paiement {
    margin-top: 24px;
    border: 2px solid #8e1c4a;
    border-radius: 6px;
    padding: 18px 20px;
}

.bloc-paiement h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.bloc-paiement p {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
    line-height: 1.5;
}

.moyens-paiement {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.moyens-paiement form {
    margin: 0;
}

.btn-paiement {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
}

.btn-stripe {
    background: #635bff;
}

.btn-stripe:hover {
    background: #4f47e0;
}

.btn-paypal {
    background: #003087;
}

.btn-paypal:hover {
    background: #001f5c;
}

/* ---------- Page de confirmation ---------- */
.confirmation-commande h1 {
    color: #1e7a35;
}

.confirmation-commande .recap-commande {
    margin-bottom: 18px;
}

@media (max-width: 480px) {
    .recap-commande,
    .bloc-coordonnees,
    .bloc-paiement {
        padding: 14px 16px;
    }
}
