.achats-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem auto;
    max-width: 900px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #62bc46;
}
.achats-card h1, .achats-card h2 { color: #386db5; }
.merci-page .merci-entete {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
}
.merci-page .merci-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: #d4edda;
    color: #155724;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.merci-page .merci-entete h1 {
    color: #62bc46;
    margin: 0 0 0.5rem;
}
.merci-page .merci-sous-titre {
    color: #386db5;
    font-size: 1.05rem;
    margin: 0;
}
.merci-recap {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}
.merci-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn-achats {
    background: #386db5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.btn-achats:hover { background: #2d568f; color: #fff; }
.btn-achats.secondary { background: #6c757d; }
.btn-achats.danger { background: #c0392b; }
.alert-ok { background: #d4edda; color: #155724; padding: 12px; border-radius: 6px; margin-bottom: 1rem; }
.alert-err { background: #f8d7da; color: #721c24; padding: 12px; border-radius: 6px; margin-bottom: 1rem; }
.table-achats { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-achats th, .table-achats td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.table-achats th { background: #f0f7ff; }
.form-grid label { display: block; margin: 8px 0; }
.form-grid input[type="text"], .form-grid input[type="number"], .form-grid input[type="date"],
.form-grid input[type="email"], .form-grid input[type="tel"], .form-grid select, .form-grid textarea {
    width: 100%; max-width: 480px; padding: 8px; box-sizing: border-box;
}
.ligne-panier { border: 1px solid #e0e0e0; padding: 12px; margin: 10px 0; border-radius: 8px; }
.article-entete { margin: 0 0 10px; }
.lignes-enfants { margin-left: 4px; }
.ligne-enfant, .ligne-simple {
    display: block;
    padding: 8px 10px;
    margin: 6px 0;
    background: #f8fafc;
    border-radius: 6px;
    cursor: pointer;
}
.ligne-enfant:hover, .ligne-simple:hover { background: #f0f7ff; }
.nav-achats { margin: 1rem 0; }
.nav-achats a { margin-right: 12px; }
.prix { font-weight: 600; color: #386db5; }
.stock-bas { color: #c0392b; font-size: 0.85rem; }
.textarea-html {
    width: 100%;
    max-width: 640px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    min-height: 100px;
}
.vente-presentation {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
}
.vente-presentation-titre-fallback {
    color: #386db5;
    margin: 0 0 0.75rem;
}
.vente-presentation-description {
    color: #333;
    line-height: 1.5;
}
.vente-presentation-description p:first-child {
    margin-top: 0;
}
.commande-historique {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 10px 0;
    background: #fafafa;
}
.commande-historique-compact { padding: 10px 12px; margin: 8px 0; }
.commande-historique-entete { margin-bottom: 6px; }
.commande-historique-lignes { margin: 6px 0 0 18px; padding: 0; }
.commande-statut { font-size: 0.85rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.cmd-statut-paye { background: #d4edda; color: #155724; }

.admin-creer-commande {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e0e8f0;
}
.admin-creer-commande > summary {
    cursor: pointer;
    font-weight: 600;
    color: #386db5;
}
.form-creer-commande .form-grid-creer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}
.form-creer-commande label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 0.25rem;
}
.form-creer-commande input,
.form-creer-commande select {
    padding: 0.4rem 0.5rem;
}
.table-creer-lignes { margin: 1rem 0; }
.table-creer-lignes .benef-creer input {
    width: 7rem;
    margin-right: 0.25rem;
}
.alert-err {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.cmd-statut-en_attente { background: #fff3cd; color: #856404; }
.cmd-statut-rembourse { background: #e2e3e5; color: #383d41; }
.cmd-statut-annule { background: #f8d7da; color: #721c24; }
.historique-vente { background: #f0f7ff; border: 1px solid #c5d9f0; border-radius: 8px; padding: 14px; margin-bottom: 1.5rem; }
.historique-vente h2 { margin-top: 0; font-size: 1.1rem; color: #386db5; }
.acces-public-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0;
}
.acces-public-bloc {
    border: 2px solid #386db5;
    border-radius: 10px;
    padding: 1.25rem;
    background: #fafcff;
}
.acces-public-bloc h3 { margin: 0 0 0.75rem; color: #386db5; }
.acces-public-identite {
    background: #f0f7ff;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 1rem;
}
