/* Page « Notre histoire » : récit éditorial, sans hero ni carte décorative. */
.page--history main {
  min-height: 0;
}

.page--history .story-page {
  display: block;
  min-height: 0;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4.5rem, 8vw, 7.5rem);
  background:
    radial-gradient(circle at 92% 4%, rgb(36 117 237 / .09), transparent 30rem),
    linear-gradient(180deg, #f7faff 0%, #f4f8fd 38%, #f8fafc 100%);
}

.story-page__inner {
  width: min(100% - 4rem, 70rem);
  margin-inline: auto;
}

.story-page__intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(20rem, .72fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid #cdd9e8;
}

.story-page__heading .eyebrow {
  margin-bottom: 1rem;
}

.page--history .story-page h1 {
  max-width: 11ch;
  margin: 0;
  color: #102038;
  font-size: clamp(2.65rem, 5.4vw, 5rem);
  line-height: .98;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.story-page__lead {
  max-width: 43rem;
  margin: 0;
  color: #42536b;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.story-page__chapters {
  border-bottom: 1px solid #cdd9e8;
}

.story-chapter {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(3.25rem, 6vw, 5rem) 0;
}

.story-chapter + .story-chapter {
  border-top: 1px solid #d8e2ee;
}

.story-chapter__meta {
  color: #607086;
  font-size: .82rem;
  line-height: 1.5;
  font-weight: 620;
}

.story-chapter__meta span {
  display: block;
  margin-bottom: .55rem;
  color: #1459c7;
  font-variant-numeric: tabular-nums;
}

.story-chapter__meta p {
  margin: 0;
}

.story-chapter__body {
  max-width: 47rem;
}

.page--history .story-chapter h2,
.page--history .story-method h2,
.page--history .story-closing h2 {
  margin: 0;
  color: #102038;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.story-chapter__copy {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.story-chapter__copy p {
  max-width: 67ch;
  margin: 0;
  color: #53657d;
  font-size: 1rem;
  line-height: 1.72;
}

.story-method {
  padding: clamp(3.75rem, 7vw, 6rem) 0;
  border-bottom: 1px solid #cdd9e8;
}

.story-method__heading {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  margin-bottom: 2.25rem;
}

.story-method__heading .eyebrow {
  margin: .35rem 0 0;
}

.story-method__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #bfcddd;
  border-bottom: 1px solid #bfcddd;
}

.story-method__steps li {
  min-width: 0;
  padding: 1.75rem clamp(1.25rem, 2.5vw, 2.1rem) 2rem;
}

.story-method__steps li + li {
  border-left: 1px solid #bfcddd;
}

.story-method__number {
  display: block;
  margin-bottom: 2.75rem;
  color: #1459c7;
  font-size: .78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.page--history .story-method__steps h3 {
  margin: 0 0 .7rem;
  color: #102038;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.story-method__steps p {
  margin: 0;
  color: #53657d;
  font-size: .93rem;
  line-height: 1.65;
}

.story-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
  padding-top: clamp(3.75rem, 7vw, 6rem);
}

.story-closing > div:first-child {
  max-width: 43rem;
}

.story-closing p {
  max-width: 61ch;
  margin: 1rem 0 0;
  color: #53657d;
  line-height: 1.7;
}

.story-closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}

.story-closing__actions .button {
  min-height: 2.75rem;
  white-space: nowrap;
}

@media (max-width: 64rem) {
  .story-page__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }

  .page--history .story-page h1 {
    max-width: 13ch;
  }

  .story-page__lead {
    max-width: 60ch;
  }

  .story-chapter,
  .story-method__heading {
    grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .story-closing {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .story-closing__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 47.99rem) {
  .page--history .story-page {
    padding: 2.5rem 0 4.5rem;
  }

  .story-page__inner {
    width: calc(100% - 2.5rem);
  }

  .story-page__intro {
    gap: 1.35rem;
    padding-bottom: 2.5rem;
  }

  .page--history .story-page h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.055em;
  }

  .story-page__lead {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .story-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 2.75rem 0;
  }

  .story-chapter__meta {
    display: flex;
    align-items: baseline;
    gap: .75rem;
  }

  .story-chapter__meta span {
    margin: 0;
  }

  .story-chapter__copy {
    margin-top: 1.1rem;
  }

  .story-method {
    padding: 3rem 0;
  }

  .story-method__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    margin-bottom: 1.75rem;
  }

  .story-method__heading .eyebrow {
    margin: 0;
  }

  .story-method__steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-method__steps li {
    padding: 1.4rem 0 1.55rem;
  }

  .story-method__steps li + li {
    border-top: 1px solid #bfcddd;
    border-left: 0;
  }

  .story-method__number {
    margin-bottom: 1.25rem;
  }

  .story-closing {
    padding-top: 3rem;
  }

  .story-closing__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .story-closing__actions .button {
    width: 100%;
  }
}

@media (prefers-contrast: more) {
  .story-page__intro,
  .story-page__chapters,
  .story-chapter + .story-chapter,
  .story-method,
  .story-method__steps,
  .story-method__steps li + li {
    border-color: #53657d;
  }
}
