:root {
  color-scheme: light;
}

.fc-section {
  margin-bottom: 2rem;
}

.fc-section h2 {
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.fc-section p,
.fc-section ul,
.fc-section ol {
  margin: 0.5rem 0;
  line-height: 1.6;
  color: #334155;
}

.fc-section ul {
  padding-left: 1.2rem;
}

.table-scroll {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

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

.fc-table th,
.fc-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.fc-table thead th {
  background: #eef2ff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.fc-table tbody tr:nth-child(even) {
  background: #fff;
}

.fc-calculator {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fc-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.fc-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #0f172a;
}

.fc-form input[type="number"] {
  width: 120px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 1rem;
}

.fc-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.fc-form button {
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* rtc-primary-btn maintenant défini globalement dans index.css */

.fc-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: #b91c1c;
}

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

.fc-card {
  border: 1px solid #dbe4ff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.fc-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #1d4ed8;
}

.fc-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.fc-average {
  border: 1px solid #d4e4ff;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: #eff6ff;
}

.fc-average h3 {
  margin-top: 0;
}

.fc-interval {
  font-size: 0.95rem;
  color: #475569;
}

.fc-warning {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #b91c1c;
}

.zones-table th:nth-child(3),
.zones-table td:nth-child(3) {
  text-align: center;
  font-weight: 600;
}

.fc-alert {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 600;
}

@media (max-width: 640px) {
  .fc-form {
    flex-direction: column;
    align-items: stretch;
  }

  .fc-form input[type="number"] {
    width: 100%;
  }
}
