/* Frise chronologique — chargée après les styles historiques. */
.ba-timeline-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 8% 12%, rgba(249,115,22,.09), transparent 26%), radial-gradient(circle at 92% 90%, rgba(15,23,42,.06), transparent 28%), #f8fafc;
}
.ba-timeline-section::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -160px;
  top: 56px;
  border: 46px solid rgba(234,88,12,.035);
  border-radius: 50%;
  pointer-events: none;
}
.ba-timeline-section .ba-section__header { margin-bottom: 72px; }
.ba-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  isolation: isolate;
}
.ba-timeline::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 27px;
  left: 54px;
  right: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 38%, #fb923c 72%, #fdba74 100%);
  box-shadow: 0 0 0 5px rgba(249,115,22,.08);
}
.ba-timeline__item {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.ba-timeline__marker {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  margin-bottom: 22px;
}
.ba-timeline__marker::after {
  content: "";
  position: absolute;
  left: 35px;
  bottom: -23px;
  width: 2px;
  height: 24px;
  background: linear-gradient(#f97316, #fed7aa);
}
.ba-timeline__year {
  width: auto;
  min-width: 82px;
  height: 48px;
  margin: 0;
  padding: 0 15px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 0 0 3px #f97316, 0 8px 24px rgba(15,23,42,.2);
}
.ba-timeline__card {
  position: relative;
  flex: 1;
  min-height: 220px;
  padding: 30px 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(203,213,225,.8);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff 0%, #fff 72%, #fff7ed 100%);
  box-shadow: 0 14px 35px rgba(15,23,42,.07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ba-timeline__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#ea580c, #fb923c);
}
.ba-timeline__item:hover .ba-timeline__card {
  transform: translateY(-7px);
  border-color: #fdba74;
  box-shadow: 0 22px 48px rgba(15,23,42,.12), 0 8px 22px rgba(234,88,12,.08);
}
.ba-timeline__number {
  position: absolute;
  top: 10px;
  right: 16px;
  color: rgba(234,88,12,.28);
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  transition: color .25s ease;
}
.ba-timeline__item:hover .ba-timeline__number {
  color: rgba(234,88,12,.46);
}
.ba-timeline__item h3 {
  position: relative;
  z-index: 1;
  max-width: 82%;
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.32;
}
.ba-timeline__item p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #526175;
  font-size: 14px;
  line-height: 1.72;
}
@media (max-width: 1023px) {
  .ba-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .ba-timeline::before, .ba-timeline__marker::after { display: none; }
  .ba-timeline__card { min-height: 190px; }
}
@media (max-width: 767px) {
  .ba-timeline-section .ba-section__header { margin-bottom: 44px; }
  .ba-timeline { grid-template-columns: 1fr; gap: 24px; padding-left: 0; }
  .ba-timeline::before {
    display: block;
    z-index: -1;
    top: 24px;
    bottom: 24px;
    left: 42px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .ba-timeline__item { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .ba-timeline__marker { height: 48px; margin: 12px 0 0; }
  .ba-timeline__year { min-width: 76px; height: 42px; padding: 0 11px; font-size: 14px; box-shadow: 0 0 0 3px #f97316, 0 6px 18px rgba(15,23,42,.18); }
  .ba-timeline__card { min-height: 0; padding: 25px 20px 23px; border-radius: 17px; }
  .ba-timeline__item h3 { max-width: 85%; font-size: 17px; }
  .ba-timeline__number { font-size: 42px; }
}
