/* Page Température Running */
/* Layout avec largeur limitée */
.categories-main .container {
  margin: 0 0 2rem 0;
  max-width: 1200px;
}

/* Résumé en haut de page */
.temp-summary {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.summary-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.summary-card h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #1e293b;
}

.summary-highlights {
  display: grid;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.highlight-item p {
  margin: 0;
  font-size: 1rem;
  color: #475569;
}

/* Graphique */
.temp-chart-section {
  margin-bottom: 3rem;
}

.section-intro {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
}

.chart-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.chart-legend {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.chart-legend p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #1e293b;
}

.chart-legend ul {
  margin: 0;
  padding-left: 1.5rem;
}

.chart-legend li {
  margin-bottom: 0.5rem;
  color: #475569;
  line-height: 1.6;
}

/* Calculateur */
.temp-calculator-section {
  margin-bottom: 3rem;
}

.temp-calculator-widget {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1e293b;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #334155;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.btn-primary:hover {
  filter: brightness(1.05);
}

#temp-calculator-result {
  margin-top: 2rem;
}

.result-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-left: 4px solid #2563eb;
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #1e293b;
}

.result-stats {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-stat {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #06b6d4;
}

.result-stat-label {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.result-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
}

.result-comparison {
  background: #eff6ff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.result-comparison h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #1e293b;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comparison-item {
  text-align: center;
}

.comparison-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.comparison-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
}

.comparison-conditions {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #475569;
}

.comparison-conditions small {
  display: block;
  line-height: 1.4;
}

.result-advice {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 3px solid #f59e0b;
}

.result-advice strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

/* Conseils pratiques */
.temp-advice-section {
  margin-bottom: 3rem;
}

.temp-advice-grid {
  display: grid;
  gap: 1.5rem;
}

.advice-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 5px solid;
}

.advice-card.temp-cold {
  border-left-color: #3b82f6;
}

.advice-card.temp-cool {
  border-left-color: #10b981;
}

.advice-card.temp-warm {
  border-left-color: #f59e0b;
}

.advice-card.temp-hot {
  border-left-color: #ef4444;
}

.advice-card.temp-extreme {
  border-left-color: #7c3aed;
  background: linear-gradient(135deg, #fee 0%, #fdd 100%);
}

.advice-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.temp-icon {
  font-size: 2rem;
}

.advice-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #1e293b;
  flex: 1;
}

.temp-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.temp-badge.optimal {
  background: #dbeafe;
  color: #1e40af;
}

.temp-badge.good {
  background: #d1fae5;
  color: #065f46;
}

.temp-badge.moderate {
  background: #fef3c7;
  color: #92400e;
}

.temp-badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.temp-badge.extreme {
  background: #000;
  color: #fff;
}

.advice-content p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #1e293b;
}

.advice-content ul {
  margin: 0;
  padding-left: 1.5rem;
}

.advice-content li {
  margin-bottom: 0.5rem;
  color: #475569;
  line-height: 1.6;
}

/* Facteurs aggravants */
.factors-section {
  margin-bottom: 3rem;
}

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

.factor-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #667eea;
}

.factor-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1e293b;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.factor-icon {
  font-size: 1.5rem;
}

.factor-impact {
  background: #f1f5f9;
  padding: 0.8rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.factor-card ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.factor-card li {
  margin-bottom: 0.5rem;
  color: #475569;
  line-height: 1.6;
}

.factor-tip {
  background: #fef3c7;
  padding: 0.8rem;
  border-radius: 6px;
  border-left: 3px solid #f59e0b;
  font-size: 0.9rem;
  color: #78350f;
  margin: 0;
}

/* Section scientifique */
.science-section {
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
  padding: 2rem;
  border-radius: 12px;
}

.science-section h2 {
  color: #1e293b;
}

.science-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.science-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.science-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1e293b;
  font-size: 1.1rem;
}

.science-card p {
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.6;
}

.science-card ul {
  margin: 0;
  padding-left: 1.5rem;
}

.science-card li {
  margin-bottom: 0.5rem;
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Records */
.records-section {
  margin-bottom: 3rem;
}

.fun-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.fact-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fact-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.fact-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #78350f;
  font-size: 1.2rem;
}

.fact-card p {
  margin-bottom: 1rem;
  color: #78350f;
  line-height: 1.6;
}

.fact-card ul {
  margin: 0;
  padding-left: 1.5rem;
}

.fact-card li {
  margin-bottom: 0.5rem;
  color: #92400e;
  line-height: 1.6;
}

/* FAQ */
.faq-section {
  margin-bottom: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '▶';
  font-size: 0.8rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item summary:hover {
  background-color: #f8fafc;
}

.faq-item p {
  padding: 0 1.5rem 1.5rem 3rem;
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .summary-card {
    padding: 1.5rem;
  }

  .summary-card h2 {
    font-size: 1.5rem;
  }

  .highlight-item {
    padding: 1rem;
  }

  .chart-container {
    padding: 1rem;
  }

  .temp-calculator-widget {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .science-content {
    grid-template-columns: 1fr;
  }

  .factors-grid {
    grid-template-columns: 1fr;
  }

  .fun-facts {
    grid-template-columns: 1fr;
  }
}

/* Alert/Warning styles */
.rtc-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #ef4444;
}

.rtc-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

.rtc-success {
  background: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

/* Labels optionnels et obligatoires */
.optional {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
  font-style: italic;
  margin-left: 0.25rem;
}

.required {
  color: #dc2626;
  font-weight: 700;
}

/* Champs distance km et mètres côte à côte */
.form-row .form-group {
  flex: 1;
  min-width: 0;
}

