/* ============================================================
   INTRO
   ============================================================ */
.sim-intro { margin-bottom: 2rem; }

.sim-intro h1 {
  font-size: 30px;
  font-weight: 700;
  color: #1a2e1a;
  line-height: 1.3;
  margin-bottom: .8rem;
}

.sim-intro p {
  font-size: 17px;
  color: #333;
  line-height: 1.8;
  margin-bottom: .6rem;
}

.sim-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.sim-tag {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #e8f4e8;
  color: #1D9E75;
  font-weight: 500;
}

/* ============================================================
   SCHÉMA LOGIQUE (2 colonnes)
   ============================================================ */
.logic-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #d4ead4;
  border: 1px solid #d4ead4;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.8rem;
}
.logic-col { background: #f4fbf7; padding: 18px 20px; }
.logic-col.right { background: #fff; }
.logic-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #1D9E75;
  margin-bottom: 10px;
  font-weight: 600;
}
.logic-item {
  font-size: 15px;
  color: #222;
  padding: 6px 0;
  border-bottom: 1px solid #e8f4e8;
  line-height: 1.5;
}
.logic-item:last-child { border: none; }
.logic-item strong { color: #1a2e1a; }

@media (max-width: 540px) {
  .logic-box { grid-template-columns: 1fr; }
}

/* ============================================================
   CARTE SIMULATEUR
   ============================================================ */
.sim-card {
  background: #fff;
  border: 1px solid #d4ead4;
  border-radius: 16px;
  padding: 2.2rem 2rem 2rem;
  box-shadow: 0 2px 20px rgba(29,158,117,.09);
}

/* ============================================================
   LABELS & FORMULAIRE
   ============================================================ */
.sim-label {
  font-size: 16px;
  color: #333;
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}

.sim-select,
.sim-input {
  width: 100%;
  padding: 13px 15px;
  font-size: 16px;
  border: 1.5px solid #cde4cd;
  border-radius: 10px;
  background: #fafffe;
  color: #111;
  margin-bottom: 1.2rem;
  box-sizing: border-box;
  line-height: 1.5;
}

.sim-select:focus,
.sim-input:focus {
  outline: none;
  border-color: #1D9E75;
  box-shadow: 0 0 0 3px rgba(29,158,117,.15);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

@media (max-width: 600px) {
  .sim-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BADGES ÉLIGIBILITÉ & REVENUS
   ============================================================ */
.elig-box {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 1.2rem;
  font-size: 16px;
  line-height: 1.7;
}
.elig-ok  { background: #eaf3de; border-left: 4px solid #1D9E75; color: #1a3a1a; }
.elig-warn{ background: #faeeda; border-left: 4px solid #EF9F27; color: #3a2200; }
.elig-err { background: #fcebeb; border-left: 4px solid #E24B4A; color: #3a0000; }

.rev-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  margin: .3rem 0 1.2rem;
}
.badge-tm { background: #e6f1fb; color: #0C447C; }
.badge-mo { background: #eaf3de; color: #1a3a1a; }
.badge-nc { background: #fcebeb; color: #3a0000; }

/* ============================================================
   ÉTAPE LABEL
   ============================================================ */
.sim-step-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #1D9E75;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.sim-divider {
  border: none;
  border-top: 1px solid #e0f0e0;
  margin: 1.6rem 0;
}

/* ============================================================
   CHIPS TRAVAUX
   ============================================================ */
.sim-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: .6rem 0 1.4rem;
}

.sim-chip {
  padding: 9px 16px;
  font-size: 15px;
  border-radius: 22px;
  border: 1.5px solid #cde4cd;
  cursor: pointer;
  background: #fafffe;
  color: #222;
  transition: all .15s;
  user-select: none;
  line-height: 1.4;
}

.sim-chip.on {
  background: #1D9E75;
  color: #fff;
  border-color: #1D9E75;
}

.sim-chip:hover { border-color: #1D9E75; }

/* ============================================================
   RÉSULTATS
   ============================================================ */
.sim-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 1.4rem;
}

@media (max-width: 520px) {
  .sim-results { grid-template-columns: 1fr; }
}

.sim-rbox {
  background: #f4fbf7;
  border: 1px solid #c5e3c5;
  border-radius: 12px;
  padding: 18px 20px;
}

.sim-rlabel {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1D9E75;
  margin-bottom: 6px;
  font-weight: 600;
}

.sim-rval {
  font-size: 30px;
  font-weight: 700;
  color: #1a2e1a;
  line-height: 1.2;
}

.sim-rsub {
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

/* ============================================================
   TABLEAU DÉTAIL
   ============================================================ */
.sim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #eef6ee;
  gap: 12px;
}

.sim-row:last-child { border: none; }
.sim-rl { color: #444; flex: 1; }
.sim-rr { font-weight: 700; color: #1a2e1a; white-space: nowrap; }

/* ============================================================
   TITRE CUMUL
   ============================================================ */
.sim-cumul-title {
  font-size: 14px;
  font-weight: 700;
  color: #1D9E75;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 1.4rem 0 8px;
  display: block;
}

/* ============================================================
   ALERTES
   ============================================================ */
.sim-alert {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.7;
  margin-top: 12px;
}
.sim-alert-ok   { background: #eaf3de; color: #1a3a1a; }
.sim-alert-warn { background: #faeeda; color: #3a2200; }
.sim-alert-err  { background: #fcebeb; color: #3a0000; }

/* ============================================================
   LIEN RETOUR
   ============================================================ */
.sim-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #1D9E75;
  text-decoration: none;
  margin-top: 2.5rem;
  font-weight: 500;
}
.sim-back:hover { text-decoration: underline; }

/* ============================================================
   MENTION LÉGALE
   ============================================================ */
.sim-legal {
  font-size: 13px;
  color: #888;
  margin-top: 2rem;
  line-height: 1.7;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* ============================================================
   RESPONSIVE GLOBAL
   ============================================================ */
@media (max-width: 480px) {
  .sim-intro h1    { font-size: 24px; }
  .sim-intro p     { font-size: 16px; }
  .sim-card        { padding: 1.4rem 1rem; }
  .sim-label       { font-size: 15px; }
  .sim-select,
  .sim-input       { font-size: 16px; padding: 12px 13px; }
  .sim-chip        { font-size: 14px; padding: 8px 13px; }
  .sim-rval        { font-size: 26px; }
  .sim-row         { font-size: 14px; }
  .sim-alert       { font-size: 14px; }
}