/* ----- Scoped to the simulator only ----- */
.dpsim-container {
  margin: 20px auto;
  max-width: 1200px;
  font-family: inherit;
}

/* Form */
.dpsim-form {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.dpsim-input {
  margin-right: 20px; /* 20px entre le champ et le bouton */
  flex: 1;
}
.dpsim-button {
  padding: 6px 12px;
  cursor: pointer;
}

/* Meta infos */
.dpsim-meta p {
  margin: 4px 0;
}

/* Dates en ligne avec petit espace entre */
.dpsim-meta-inline {
  margin: 8px 0 20px 0;
}
.dpsim-spacer {
  display: inline-block;
  width: 16px; /* petit espace */
}

/* Two blocks side-by-side */
.dpsim-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.dpsim-block {
  flex: 1 1 0;
  margin: 0;                 /* géré par .dpsim-grid: gap */
  padding: 20px;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}
.dpsim-block h4 {
  margin: 0 0 12px 0;
}

/* Layout interne : flèche + zone métriques */
.dpsim-row {
  display: flex;
  align-items: center;
}
.dpsim-arrow-col {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dpsim-metrics {
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Deux lignes : 1) labels / 2) valeurs */
.dpsim-metrics-row {
  display: flex;
  gap: 20px;
}
.dpsim-metric {
  flex: 1 1 0;
  text-align: center;
}

/* Arrow letter (3x wider, 32px font) */
.dpsim-arrow {
  padding: 10px 60px;
  color: #fff;
  font-weight: bold;
  font-size: 32px;
  clip-path: polygon(0 0,80% 0,100% 50%,80% 100%,0 100%);
}

/* Responsive: stack blocks if viewport is narrow */
@media (max-width: 900px) {
  .dpsim-grid {
    flex-direction: column;
  }
}
