* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f6f7fb; color: #222; }
a { color: #7b2cbf; text-decoration: none; }
.topbar { background: #fff; border-bottom: 1px solid #ddd; padding: 14px 18px; display: flex; gap: 15px; justify-content: space-between; align-items: center; position: sticky; top: 0; }
.brand { font-weight: bold; font-size: 20px; color: #222; }
nav { display: flex; gap: 12px; flex-wrap: wrap; }
.container { max-width: 900px; margin: 25px auto; padding: 0 15px; }
.card { background: #fff; border: 1px solid #e1e1e1; border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: bold; margin-bottom: 6px; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 10px; font-size: 16px; }
textarea { min-height: 90px; resize: vertical; }
button, .btn { display: inline-block; background: #7b2cbf; color: white; border: 0; border-radius: 10px; padding: 12px 16px; cursor: pointer; font-size: 16px; }
.btn.secondary { background: #555; }
.btn.danger { background: #b00020; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.result { padding: 12px 0; border-bottom: 1px solid #eee; }
.result:last-child { border-bottom: 0; }
.muted { color: #666; font-size: 14px; }
.price { font-weight: bold; }
.alert { padding: 12px; border-radius: 10px; margin-bottom: 12px; }
.alert.success { background: #e8f7ee; }
.alert.error { background: #fdeaea; }
@media (max-width: 700px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .container { margin-top: 15px; }
}

/* Ajouts version prestations paramétrables */
.section-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.small-link { font-size: 14px; font-weight: bold; }
.service-category { margin: 18px 0 10px; color: #7b2cbf; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-grid form { margin: 0; }
.service-btn { width: 100%; min-height: 74px; display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: flex-start; text-align: left; background: linear-gradient(135deg, #7b2cbf, #d48ca3); border-radius: 16px; box-shadow: 0 6px 16px rgba(123,44,191,.18); }
.service-btn span { font-weight: 700; }
.service-btn strong { font-size: 14px; background: rgba(255,255,255,.18); padding: 4px 8px; border-radius: 999px; }
.manual-add { margin-top: 16px; }
.client-card h1 { margin-top: 0; }
.history-item { background: #faf7ff; border: 1px solid #eee; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.service-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.compact-actions { justify-content: flex-end; }
.compact-actions form { margin: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; margin-left: 6px; }
.muted-badge { background: #eee; color: #555; }
@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-btn { min-height: 68px; font-size: 17px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .service-row { align-items: stretch; flex-direction: column; }
  .compact-actions { justify-content: flex-start; }
}
