/* Styles dédiés au calculateur d'allures Jack Daniels */

.pace-wrapper {
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}

.pace-wrapper h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #0a2a43;
}

.pace-form {
  display: grid;
  gap: 1rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.pace-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2a37;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pace-form input,
.pace-form select {
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  background: #fefefe;
}

.pace-time-group {
  display: flex;
  gap: 0.75rem;
}

.pace-time-group label {
  flex: 1;
}

.pace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pace-actions button {
  background: linear-gradient(135deg, #0f7ae5, #3ac0fa);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 122, 229, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pace-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 122, 229, 0.28);
}

.pace-status {
  font-size: 0.95rem;
  color: #475467;
}

.pace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pace-card {
  border: 1px solid #d7deea;
  border-radius: 16px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pace-card .pace-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
}

.pace-card h3 {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.pace-card .pace-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a2540;
}

.pace-card .pace-speed {
  font-size: 0.95rem;
  color: #475467;
}

.pace-card .pace-note {
  margin-top: auto;
  font-size: 0.85rem;
  color: #6b7280;
}

[data-zone-card="E"] .pace-chip { background: #22c55e; }
[data-zone-card="M"] .pace-chip { background: #0ea5e9; }
[data-zone-card="T"] .pace-chip { background: #f97316; }
[data-zone-card="I"] .pace-chip { background: #8b5cf6; }
[data-zone-card="R"] .pace-chip { background: #ec4899; }

.pace-card[data-ready="false"] {
  opacity: 0.75;
}

.pace-card[data-ready="false"] .pace-value,
.pace-card[data-ready="false"] .pace-speed {
  color: #94a3b8;
}

.pace-info {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.pace-info h2 {
  color: #fff;
  margin-top: 0;
}

.pace-info ul {
  margin: 0;
  padding-left: 1.25rem;
}

.pace-info li {
  margin-bottom: 0.45rem;
}

.pace-table-wrapper {
  margin-top: 2rem;
}

.pace-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pace-table-wrapper th,
.pace-table-wrapper td {
  border: 1px solid #d8dee9;
  padding: 0.75rem;
  text-align: left;
}

.pace-table-wrapper th {
  background: #eef2ff;
  font-weight: 700;
}

@media (max-width: 640px) {
  .pace-wrapper {
    padding: 1.25rem;
  }

  .pace-time-group {
    flex-direction: column;
  }

  .pace-card {
    min-height: auto;
  }
}

