/* ============================= */
/* CHIFFRES CLÉS - GRHTLD */
/* Inspiré de la ribbon du Hero */
/* ============================= */

:root {
  --bg: #F4F1EA;
  --ink: #14110D;
  --ink-2: #3B362D;
  --ink-3: #71695C;
  --line: #DDD6C6;
  --navy: #1F3565;
  --gold: #D9A536;
  --serif: "Source Serif 4", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* La section ne doit pas ajouter de gros padding */
.builder.key_nbs {
  position: relative;
  overflow: hidden;
  padding: 0 0 50px;
  color: var(--ink);
  background: var(--bg);
}

.key-nbs__inner {
  position: relative;
  z-index: 1;
}

.builder.key_nbs .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================= */
/* RIBBON */
/* ============================= */

.chiffres {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.chiffre {
  padding: 0 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chiffre:first-child {
  padding-left: 0;
}

.chiffre:last-child {
  border-right: 0;
  padding-right: 0;
}

.chiffre__kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.chiffre__top {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1;
}

.chiffre__prefix,
.chiffre__suffix {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
}

.chiffre__valeur {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--navy);
}

.chiffre__label {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1200px) {
  .builder.key_nbs {
    padding-bottom: 86px;
  }

  .builder.key_nbs .container {
    padding: 0 28px;
  }

  .chiffre {
    padding: 0 18px;
  }
}

@media (max-width: 880px) {
  .builder.key_nbs {
    padding-bottom: 72px;
  }

  .chiffres {
    margin-top: 64px;
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 0;
  }

  .chiffre {
    padding: 16px 22px;
    border-right: 0;
    border-bottom: 1px dashed var(--line);
  }

  .chiffre:first-child {
    padding-left: 22px;
  }

  .chiffre:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .chiffre:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 600px) {
  .builder.key_nbs {
    padding-bottom: 56px;
  }

  .builder.key_nbs .container {
    padding: 0 20px;
  }

  .chiffres {
    margin-top: 56px;
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .chiffre {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px dashed var(--line);
  }

  .chiffre:first-child {
    padding-left: 0;
  }

  .chiffre:nth-child(odd) {
    border-right: 0;
  }

  .chiffre:nth-last-child(-n + 2) {
    border-bottom: 1px dashed var(--line);
  }

  .chiffre:last-child {
    border-bottom: 0;
  }

  .chiffre__valeur {
    font-size: 36px;
  }

  .chiffre__prefix,
  .chiffre__suffix {
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  .builder.key_nbs .container {
    padding: 0 16px;
  }
}