.categories-main .container {
  margin: 0 0 2rem 0; /* aligné à gauche */
  max-width: 1200px;
}

.eq-panel {
  margin-bottom: 2rem;
  overflow: hidden; /* évite les bordures qui débordent sur les coins arrondis */
}

.eq-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.eq-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem 1rem;
  background: #fff;
  height: 100%;
}

.eq-fieldset legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: #111827;
}

.eq-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eq-inline .unit {
  font-size: 0.9rem;
  color: #4b5563;
}

.eq-time {
  display: flex;
  gap: 1rem;
}

.eq-time label {
  display: flex;
  flex-direction: column;
}

.eq-targets {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.eq-custom-distance {
  margin-top: 0.75rem;
}

.eq-hidden {
  display: none;
}

.eq-submit {
  align-self: flex-start;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.eq-submit:hover {
  filter: brightness(1.05);
}

.eq-status {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.eq-status.error {
  color: #b91c1c;
}

.eq-results {
  margin-bottom: 2rem;
}

.eq-table-wrapper {
  margin-top: 0.75rem;
  overflow-x: auto;
}

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

.eq-table-wrapper th,
.eq-table-wrapper td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.eq-table-wrapper th {
  background: #f9fafb;
  font-weight: 600;
}

.eq-placeholder td {
  text-align: center;
  color: #6b7280;
}

.eq-summary {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #111827;
}

.eq-info {
  margin-bottom: 2.5rem;
}

.eq-formula {
  margin: 0.75rem 0;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.eq-info .note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.eq-riegel-bio {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e0e7ff;
  background: #f5f7ff;
}

.eq-riegel-bio h3 {
  margin-top: 0;
  color: #1d4ed8;
}

.eq-riegel-bio ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

@media (max-width: 640px) {
  .eq-time {
    flex-direction: column;
  }
}
