/* =============================================================
   Solmateria — PREUVES / CHIFFRES
   The warm climax before the CTA. Four animated counters + a
   certifications band. Orange is now dominant in the accents.
   ============================================================= */

.preuves {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--section-pad) 0;
  /* warm climax, but restrained — top matches the process section's bottom
     (#523c3f), base warms toward the CTA so the seams blend */
  background: linear-gradient(180deg, #523c3f 0%, #58383a 50%, #5e3a31 100%);
}
.preuves__aura {
  position: absolute;
  left: 50%;
  /* moved off the top edge so its glow fades before the process→preuves seam */
  top: 24%;
  width: min(90vw, 980px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(246, 140, 56, 0.12) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.preuves__head { text-align: center; margin-bottom: var(--space-16); }

/* ---- KPI counters ------------------------------------------ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile: single column */
  gap: var(--space-12);
  max-width: 54rem;
  margin: 0 auto;
}
.kpi {
  margin: 0;
  text-align: center;
  padding: var(--space-4) 0;
}
/* All four numbers share one size + baseline; the climax orange. */
.kpi__num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.04em;
  min-height: 1em;
  white-space: nowrap;
  /* min(…, 7.8vw) keeps the widest cell ("−40 / +85°C") inside its half-width
     column on narrow phones — without it the nowrap number was clipped ~11px
     off-screen at 375px (overflow-x: clip hides the overflow silently). */
  font-size: min(clamp(2.5rem, 1.7rem + 3.4vw, 4rem), 7.8vw);
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text); /* light numbers — orange kept to the units only */
  font-variant-numeric: tabular-nums;
}
.kpi__pre { /* "−40 / +" — same size as the number for a uniform range */
  font-size: 1em;
  font-weight: var(--weight-bold);
  color: var(--color-text);
}
.kpi__unit { /* ans · + · °C — the single orange accent */
  font-size: 0.44em;
  font-weight: var(--weight-bold);
  color: var(--brand-orange);
  letter-spacing: 0;
}
.kpi__label {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ---- Certifications band ----------------------------------- */
.certs {
  max-width: 48rem;
  margin: var(--space-24) auto 0;
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.certs__lead {
  margin: 0 auto var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.certs__parent {
  max-width: 40rem;
  margin: 0 auto var(--space-8);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.certs__parent strong { color: var(--color-text); font-weight: var(--weight-semibold); }
.certs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0 auto;
}
.certs__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
}
.certs__list li svg { width: 16px; height: 16px; color: var(--brand-steel); flex: none; }
.certs__list .is-key {
  border-color: rgba(246, 140, 56, 0.6);
  background: rgba(246, 140, 56, 0.12);
  box-shadow: 0 12px 30px -16px rgba(246, 140, 56, 0.5);
}
.certs__list .is-key svg { color: var(--brand-orange); }
.certs__note {
  max-width: 34rem;
  margin: var(--space-6) auto 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.certs__note strong { color: var(--brand-orange); font-weight: var(--weight-semibold); }

/* ---- Breakpoints ------------------------------------------- */
@media (min-width: 360px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12) var(--space-6); }
}
@media (min-width: 860px) {
  /* 4 KPI on a single row; max-width widened to give each cell room */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6) var(--space-6);
    max-width: 72rem;
  }
  /* Scale numbers down so the "-40 / +85°C" cell doesn't overflow */
  .kpi__num { font-size: clamp(1.8rem, 1.1rem + 2vw, 2.75rem); }
}
