/* LPZ — styles applicatifs complémentaires (flash, tableaux, formulaires) */

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}
.flash-ok    { background: #E7F5EC; border-color: #B8E0C6; color: #1F6B3F; }
.flash-error { background: #FBE8E8; border-color: #F1B6B6; color: #8A1F1F; }
.flash-info  { background: #E6EDF8; border-color: #BFD1EC; color: #1F3B74; }
.flash-warn  { background: #FDEBDB; border-color: #F4C39A; color: #8A4418; }

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table th { background: var(--bg); font-weight: 600; color: var(--brand-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover { background: var(--bg-soft); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.pill-new     { background: var(--brand-soft); color: var(--brand-dark); }
.pill-ok      { background: #D9F0E1; color: #1F6B3F; }
.pill-warn    { background: #FDEBDB; color: #8A4418; }
.pill-danger  { background: #FBE8E8; color: #8A1F1F; }
.pill-muted   { background: var(--bg); color: var(--muted); }

/* Formulaires */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 13px; color: var(--brand-dark); }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: all var(--t);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-inline { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Steppers commande */
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps .step {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.steps .step.active { border-color: var(--accent); color: var(--brand-dark); font-weight: 600; }

/* Mobile */
@media (max-width: 720px) {
  .header-actions .iconbtn:not([aria-label="Panier"]):not(:first-child) { display: none; }
  .nav-inner { gap: 2px; }
  .nav a { padding: 10px 12px; font-size: 13px; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 9px 10px; }
}
