/* Calculateur local du guide de coût horaire. Styles isolés. */
.hourly-calc {
  margin: 28px 0 36px;
  background: var(--paper);
  border: 1px solid #cbd9c9;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px #173b2110;
  overflow: hidden;
}
.hourly-calc-head {
  padding: 24px 24px 18px;
  background: linear-gradient(125deg, #e5efdf, #f4f7ed);
  border-bottom: 1px solid #d0e0ce;
}
.hourly-calc-label {
  font-size: .72rem;
  color: #28694a;
  font-weight: 800;
  letter-spacing: .13em;
}
.article-body .hourly-calc-head h2 {
  margin: 8px 0 9px;
  line-height: 1.22;
  font-size: clamp(1.45rem, 3.1vw, 1.95rem);
}
.article-body .hourly-calc-head p {
  margin: 0;
  line-height: 1.55;
  font-size: .93rem;
}
.hourly-calc-form { padding: 24px; }
.hourly-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.hourly-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
}
.hourly-field-wide { grid-column: 1 / -1; }
.hourly-field label {
  font-size: .88rem;
  font-weight: 720;
  color: var(--forest);
}
.hourly-optional {
  color: #586c5f;
  font-weight: 500;
  font-size: .79rem;
}
.hourly-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #b7c9b9;
  border-radius: 8px;
  background: #f9fbf5;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 1rem;
  font-weight: 700;
}
.hourly-field input[aria-invalid="true"] {
  border: 2px solid #9e4035;
  background: #fff5f1;
}
.hourly-field small {
  color: #586c5f;
  font-size: .79rem;
  line-height: 1.45;
}
.hourly-field-error {
  color: #963f32;
  font-size: .81rem;
  line-height: 1.4;
  font-weight: 620;
}
.hourly-field-error:empty { display: none; }
.hourly-calc .hourly-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #276c48;
  font-size: .84rem;
  margin: 7px 0 10px;
}
.hourly-calc-result {
  border-radius: 12px;
  background: var(--forest);
  color: #fffdf7;
  padding: 20px;
  min-height: 130px;
  overflow-wrap: anywhere;
}
.hourly-result-kicker {
  color: #c4e1cd;
  text-transform: uppercase;
  letter-spacing: .075em;
  font-size: .79rem;
  font-weight: 750;
}
.hourly-main-value {
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.16;
  margin: 6px 0 10px;
}
.article-body .hourly-calc-result p {
  margin: 0 0 9px;
  font-size: .93rem;
  color: #e0ede3;
  line-height: 1.55;
}
.hourly-comparison-value {
  color: #cce5d1;
  font-size: .89rem;
  border-top: 1px solid #537c67;
  padding-top: 10px;
  font-weight: 680;
}
.hourly-comparison-value[hidden] { display: none; }
.article-body .hourly-disclaimer,
.article-body .hourly-noscript {
  margin: 12px 0 0;
  color: #586c5f;
  font-size: .8rem;
  line-height: 1.55;
}
.article-body .hourly-noscript { color: #963f32; }
@media (max-width: 550px) {
  .hourly-calc-head, .hourly-calc-form { padding: 18px; }
  .hourly-fields { grid-template-columns: 1fr; gap: 15px; }
  .hourly-field-wide { grid-column: auto; }
  .hourly-calc-result { padding: 16px; }
}
