/* ── Simulator card ──────────────────────────────────────────────
   Shared by the home page (bill slider) and /producteurs (kWc
   slider): one component, two audiences. Extracted from landing.css
   on 2026-09-02. */

.ld-sim-section {
  display: flex;
  justify-content: center;
  background: #F0FDF4;
  border-top: 1px solid #E7E5E4;
  border-bottom: 1px solid #E7E5E4;
}
.ld-sim {
  background: #fff;
  border: 1px solid #E7E5E4;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 36px rgba(20, 83, 45, 0.12);
  min-width: 0;
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 480px) { .ld-sim { padding: 22px 18px; } }
.ld-sim-title { font-weight: 700; font-size: 1.25rem; margin: 0 0 6px; color: #1C1917; }
.ld-sim-sub { font-size: 0.875rem; color: #78716C; margin: 0 0 26px; }
.ld-sim-slider-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #44403C;
  margin-bottom: 10px;
}
.ld-sim-slider-label output { color: #15803D; }
.ld-sim input[type="range"] { width: 100%; margin-bottom: 26px; accent-color: #15803D; }
.ld-sim-results {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 420px) { .ld-sim-results { grid-template-columns: 1fr; } }
.ld-sim-stat { background: #F0FDF4; border-radius: 14px; padding: 16px 20px; }
.ld-sim-stat-value {
  font-family: 'Suisse Screen', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #15803D;
  white-space: nowrap;
}
.ld-sim-stat-label { font-size: 0.84rem; color: #166534; font-weight: 500; }
.ld-sim-grd { font-size: 0.8125rem; color: #57534E; margin: 0 0 12px; }
.ld-ticker {
  background: linear-gradient(90deg, #FEF9C3, #FEF3C7);
  border-radius: 14px;
  padding: 0 18px;
  height: 54px;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.ld-ticker-lead {
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #A16207;
}
.ld-ticker-items { position: absolute; left: 70px; right: 18px; top: 0; bottom: 0; }
.ld-ticker-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: ld-ticker 9s ease-in-out infinite;
}
.ld-ticker-item + .ld-ticker-item { animation-delay: 4.5s; }
.ld-ticker-emoji { font-size: 1.25rem; }
.ld-ticker-text { font-size: 0.94rem; font-weight: 600; color: #92400E; }
.ld-sim-note { font-size: 0.75rem; color: #78716C; line-height: 1.5; margin: 0 0 18px; }
.ld-sim-note summary { color: #57534E; font-weight: 600; cursor: pointer; }
.ld-sim-note[open] summary { margin-bottom: 4px; }
/* Address row of the producer hero form (NPA, Rue, N°). */
.ld-sim-addr {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  gap: 10px;
  margin: 18px 0 14px;
}
@media (max-width: 420px) {
  .ld-sim-addr { grid-template-columns: 90px 1fr; }
  .ld-sim-addr .ld-addr-number { grid-column: 2; }
}
.ld-sim-addr .ld-addr-field { position: relative; }
.ld-sim-addr input {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #E5E5E5;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.94rem;
  font-family: inherit;
  background: #fff;
  color: #1C1917;
}
.ld-sim-addr input:focus { outline: none; border-color: #15803D; }
.ld-sim-submit {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #15803D 0%, #166534 100%);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ld-sim-submit:hover { transform: scale(1.02); box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35); }
.ld-sim-free { text-align: center; font-size: 0.8125rem; color: #78716C; margin: 10px 0 0; }
/* What the federal registry answered for the address (producer card,
   producer-sim.js): one installation, several, or 150 kW and more. */
.ld-sim-registry {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #166534;
  background: #F0FDF4;
  border-radius: 10px;
  padding: 10px 12px;
  margin: -4px 0 14px;
}
.ld-sim-registry[hidden] { display: none; }
.ld-sim-registry a { color: #15803D; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* One button, or two once the registry priced the installation: the
   author rule on .ld-sim-submit (display: block) would otherwise beat the
   UA's [hidden]. */
.ld-sim-actions { display: grid; gap: 10px; }
.ld-sim-submit[hidden] { display: none; }
.ld-sim-submit--secondary {
  background: #fff;
  color: #15803D;
  border: 2px solid #15803D;
  padding: 12px;
}
.ld-sim-submit--secondary:hover { box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2); }

/* Producer tiles: today (struck through) vs sold locally. */
.ld-sim-stat--today .ld-sim-stat-value { color: #78716C; text-decoration: line-through; font-weight: 700; }
.ld-sim-stat--today { background: #F5F5F4; }
.ld-sim-stat--today .ld-sim-stat-label { color: #78716C; }
.ld-sim-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.84rem; color: #44403C; margin: 0 0 14px; }
.ld-sim-check input { margin-top: 3px; accent-color: #15803D; }

/* The gain the two tiles imply, spelled out inside the green one. */
.ld-sim-stat-gain { margin-top: 4px; font-size: 0.8125rem; font-weight: 700; color: #15803D; }
