body {
  --lt-border: rgba(248, 194, 144, 0.22);
  --lt-border-soft: rgba(248, 207, 172, 0.16);
  --lt-bg-1: rgba(12, 6, 4, 0.76);
  --lt-bg-2: rgba(7, 3, 2, 0.72);
  --lt-text-soft: rgba(244, 225, 204, 0.86);
}

.container {
  width: min(1920px, calc(100% - 24px));
  margin-inline: auto;
  padding-bottom: 30px;
}

.page-header {
  width: min(1920px, calc(100% - 24px));
  margin: 20px auto 14px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid var(--lt-border);
  background:
    radial-gradient(1200px 340px at -10% -20%, rgba(255, 138, 52, 0.13), transparent 58%),
    linear-gradient(135deg, rgba(255, 142, 54, 0.07), rgba(0, 0, 0, 0.28) 40%, rgba(0, 0, 0, 0.36)),
    var(--lt-bg-1);
  box-shadow: inset 0 1px 0 rgba(255, 220, 186, 0.17), 0 16px 34px rgba(0, 0, 0, 0.34);
}

.page-header h1 {
  margin: 0 0 8px;
  line-height: 1.2;
  font-size: clamp(1.52rem, 2.5vw, 2.2rem);
}

.page-header p {
  margin: 0;
  color: var(--lt-text-soft);
}

.page-header code {
  border: 1px solid rgba(255, 202, 158, 0.26);
  border-radius: 8px;
  padding: 1px 7px;
  background: rgba(0, 0, 0, 0.34);
}

.card {
  margin-bottom: 14px;
  border: 1px solid var(--lt-border-soft);
  border-radius: 16px;
  background:
    linear-gradient(164deg, rgba(255, 132, 48, 0.04), rgba(0, 0, 0, 0.25) 38%, rgba(0, 0, 0, 0.3)),
    var(--lt-bg-2);
  box-shadow: inset 0 1px 0 rgba(255, 218, 184, 0.12), 0 14px 28px rgba(0, 0, 0, 0.28);
}

.card h2 {
  font-size: 1.24rem;
}

.lt-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lt-toolbar-title {
  margin: 0;
}

.lt-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lt-toolbar-search {
  margin: 0;
}

.lt-row {
  display: flex;
  gap: 10px;
  align-items: end;
}

.lt-row-wrap {
  flex-wrap: wrap;
}

.lt-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
  color: rgba(245, 233, 220, 0.95);
}

.lt-input,
.lt-select {
  min-height: 40px;
  border: 1px solid rgba(255, 206, 159, 0.32);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 5, 4, 0.84), rgba(0, 0, 0, 0.76));
  color: rgba(248, 236, 224, 0.98);
}

.lt-input:focus,
.lt-select:focus {
  outline: none;
  border-color: rgba(255, 173, 109, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 148, 72, 0.2);
}

.lt-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(244, 234, 220, 0.72) 50%),
    linear-gradient(135deg, rgba(244, 234, 220, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lt-select option {
  background-color: rgba(10, 6, 4, 0.95);
  color: var(--text);
}

.lt-summary {
  margin: 15px 0 18px;
}

.lt-summaryGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
}

.lt-sumCard {
  border: 1px solid rgba(255, 203, 159, 0.18);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.23);
  padding: 10px 12px;
  text-align: center;
}

.lt-sumNum {
  font-size: 1.3rem;
  font-weight: 700;
}

.lt-sumLabel {
  margin-top: 2px;
  font-size: 0.76rem;
  opacity: 0.88;
}

.lt-tableWrap {
  border: 1px solid rgba(255, 206, 162, 0.16);
  border-radius: 12px;
  background: rgba(8, 5, 4, 0.44);
}

.lt-table {
  width: 100%;
  border-collapse: collapse;
}

.lt-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(255, 194, 137, 0.24), rgba(16, 10, 8, 0.96));
  text-align: left;
  font-weight: 700;
  padding: 10px 10px;
}

.lt-table td {
  padding: 9px 10px;
  border-top: 1px solid rgba(255, 224, 197, 0.1);
  background: rgba(6, 4, 3, 0.4);
  vertical-align: top;
}

.lt-table tr:nth-child(even) td {
  background: rgba(255, 192, 132, 0.04);
}

.lt-table tr:hover td {
  background: rgba(255, 174, 96, 0.08);
}

.lt-table th:nth-child(1),
.lt-table td:nth-child(1) { width: 170px; }
.lt-table th:nth-child(2),
.lt-table td:nth-child(2) { width: 150px; }
.lt-table th:nth-child(3),
.lt-table td:nth-child(3) { width: 160px; }
.lt-table th:nth-child(4),
.lt-table td:nth-child(4) { width: 160px; }
.lt-table th:nth-child(5),
.lt-table td:nth-child(5) { width: 140px; }
.lt-table th:nth-child(6),
.lt-table td:nth-child(6) { width: auto; }
.lt-table th:nth-child(7),
.lt-table td:nth-child(7) { width: 92px; text-align: center; }
.lt-table th:nth-child(8),
.lt-table td:nth-child(8) { width: 74px; text-align: center; }

.lt-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lt-itemLink {
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
}

.lt-itemLink:hover {
  text-decoration: underline;
}

.lt-empty {
  text-align: center;
  color: var(--lt-text-soft);
}

.footer {
  margin-top: 12px;
  text-align: center;
  color: rgba(243, 223, 202, 0.82);
}

/* Qualité Wow */
:root {
  --q0: #9d9d9d;
  --q1: #ffffff;
  --q2: #1eff00;
  --q3: #0070dd;
  --q4: #a335ee;
  --q5: #ff8000;
}

.q0 { color: var(--q0); }
.q1 { color: var(--q1); }
.q2 { color: var(--q2); }
.q3 { color: var(--q3); }
.q4 { color: var(--q4); }
.q5 { color: var(--q5); }

.lt-sumCard.q0 { color: var(--q0); }
.lt-sumCard.q1 { color: var(--q1); }
.lt-sumCard.q2 { color: var(--q2); }
.lt-sumCard.q3 { color: var(--q3); }
.lt-sumCard.q4 { color: var(--q4); }
.lt-sumCard.q5 { color: var(--q5); }

#qualitySelect option[value="0"] { color: var(--q0); }
#qualitySelect option[value="1"] { color: var(--q1); }
#qualitySelect option[value="2"] { color: var(--q2); }
#qualitySelect option[value="3"] { color: var(--q3); }
#qualitySelect option[value="4"] { color: var(--q4); }
#qualitySelect option[value="5"] { color: var(--q5); }

@media (max-width: 1180px) {
  .lt-summaryGrid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .lt-toolbar,
  .lt-toolbar-actions {
    align-items: stretch;
  }

  .lt-toolbar-actions {
    width: 100%;
  }

  .lt-toolbar-search {
    flex: 1 1 260px;
  }
}

@media (max-width: 900px) {
  .container,
  .page-header {
    width: calc(100% - 14px);
  }

  .lt-label {
    width: 100%;
    min-width: 0;
  }

  .lt-row .btn {
    width: 100%;
  }

  .lt-summaryGrid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .lt-tableWrap {
    overflow-x: auto;
  }

  .lt-table {
    min-width: 1000px;
  }
}
