/**
 * Histoire du village
 */

.bras-histoire {
  padding-bottom: 2.75rem;
  scroll-behavior: smooth;
}

.bras-histoire__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem;
  border: 1px solid var(--bras-border, rgba(16, 16, 15, 0.08));
  border-radius: 16px;
  background: var(--bras-canvas, #f3f2ef);
  position: sticky;
  top: 4.6rem;
  z-index: 5;
}

.bras-histoire__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--bras-border, rgba(16, 16, 15, 0.1));
  color: var(--bras-ink, #10100f);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bras-histoire__step:hover,
.bras-histoire__step:focus-visible {
  background: var(--bras-red, #8b2332);
  border-color: transparent;
  color: #ffffff;
}

.bras-histoire__intro {
  margin: 0 0 2rem;
  max-width: 44rem;
  color: var(--bras-muted, #64605c);
  font-size: 1.02rem;
  line-height: 1.55;
}

.bras-histoire__chapter {
  margin: 0 0 2.35rem;
  padding-top: 0.35rem;
  scroll-margin-top: 7.5rem;
}

.bras-histoire__chapter-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--bras-border, rgba(16, 16, 15, 0.1));
}

.bras-histoire__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(139, 35, 50, 0.08);
  color: var(--bras-red, #8b2332);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bras-histoire__chapter-head h2 {
  margin: 0 0 0.3rem;
  color: var(--bras-ink, #10100f);
  font-family: var(--bras-display, Manrope, sans-serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 750;
  line-height: 1.2;
}

.bras-histoire__chapter-head p {
  margin: 0;
  color: var(--bras-muted, #64605c);
  font-size: 0.95rem;
  line-height: 1.45;
}

.bras-histoire__blocks {
  display: grid;
  gap: 0.85rem;
}

.bras-histoire__block {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--bras-border, rgba(16, 16, 15, 0.08));
  border-radius: 14px;
  background: #ffffff;
}

.bras-histoire__block h3 {
  margin: 0 0 0.45rem;
  color: var(--bras-ink, #10100f);
  font-size: 1rem;
  font-weight: 750;
}

.bras-histoire__block p {
  margin: 0;
  color: var(--bras-ink-soft, #34302b);
  font-size: 0.94rem;
  line-height: 1.6;
}

.bras-histoire__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  margin-top: 0.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--bras-border, rgba(16, 16, 15, 0.08));
  background: var(--bras-canvas, #f3f2ef);
}

.bras-histoire__aside p {
  margin: 0;
  max-width: 34rem;
  color: var(--bras-muted, #64605c);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bras-histoire__aside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.bras-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--bras-border, rgba(16, 16, 15, 0.14));
  background: #ffffff;
  color: var(--bras-ink, #10100f);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.bras-btn--ghost:hover {
  border-color: rgba(139, 35, 50, 0.35);
  color: var(--bras-red, #8b2332);
}

@media (max-width: 720px) {
  .bras-histoire__steps {
    top: 0;
    position: relative;
  }

  .bras-histoire__chapter {
    scroll-margin-top: 1rem;
  }

  .bras-histoire__aside {
    flex-direction: column;
    align-items: flex-start;
  }
}
