/* Imagin' Arts – Chronologie v1.2.0
 * Ordinateur : frise entière, distances proportionnelles aux années.
 * Mobile : frise proportionnelle à défilement horizontal.
 * Sans JS : liste horizontale lisible (repli progressif).
 */
.ia-history {
  --ia-history-blue: #469bd1;
  --ia-history-line: #c5cdd5;
  --ia-history-background: #fff;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: inherit;
}
.ia-history * { box-sizing: border-box; }
.ia-history__controls {
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ia-history__nav,
.ia-history__nav:hover,
.ia-history__nav:focus-visible {
  appearance: none;
  font-family: inherit;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  border: 1px solid var(--ia-history-line);
  border-radius: 4px;
  color: var(--ia-history-blue);
  background: transparent;
  box-shadow: none;
  width: 37px;
  height: 33px;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.ia-history__nav:hover,
.ia-history__nav:focus-visible { border-color: var(--ia-history-blue); }
.ia-history__nav:disabled { opacity: .35; cursor: default; }
.ia-history__viewport {
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--ia-history-line) transparent;
  -webkit-overflow-scrolling: touch;
  padding: 3px 0 14px;
}
.ia-history__viewport:focus-visible {
  outline: 2px solid var(--ia-history-blue);
  outline-offset: -2px;
}
/* Repli sans JavaScript. */
.ia-history__track {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  padding: 0;
  margin: 0 !important;
  list-style: none !important;
}
.ia-history__item {
  flex: 0 0 166px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 8px;
  position: relative;
  text-align: left;
}
.ia-history__item::marker { content: ''; }
.ia-history__dot {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--ia-history-background);
  background: var(--ia-history-blue);
  box-shadow: 0 0 0 1px var(--ia-history-blue);
  position: relative;
  z-index: 2;
  margin: 29px 0 12px;
}
.ia-history__dot--marker {
  background: var(--ia-history-background);
  box-shadow: 0 0 0 2px var(--ia-history-blue);
}
.ia-history__stem { display: none; }
.ia-history__label { display: block; min-width: 0; }
.ia-history__year {
  display: block;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: inherit;
  margin-bottom: 4px;
}
.ia-history__link,
.ia-history__link:visited,
.ia-history__milestone {
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.ia-history__link,
.ia-history__link:visited {
  display: inline-block;
  color: var(--ia-history-blue);
  text-decoration: none;
  font-weight: 500;
}
.ia-history__link:hover,
.ia-history__link:focus-visible {
  color: var(--ia-history-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ia-history__link:focus-visible { outline: 2px solid var(--ia-history-blue); outline-offset: 2px; }
.ia-history__milestone {
  display: block;
  color: #555;
  font-weight: 400;
}
.ia-history__empty { font-size: 14px; }

/* Frise proportionnelle, activée par le script. */
.ia-history--enhanced .ia-history__viewport {
  overflow-x: hidden;
  overflow-y: hidden;
}
.ia-history--enhanced .ia-history__track {
  display: block;
  width: 100%;
  min-width: 0;
  height: 220px;
  margin: 0 !important;
  padding: 0 !important;
}
.ia-history--enhanced .ia-history__track::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  top: var(--ia-history-axis, 110px);
  height: 2px;
  background: var(--ia-history-line);
  transform: translateY(-1px);
  pointer-events: none;
}
.ia-history--enhanced .ia-history__item {
  position: absolute;
  padding: 0;
  flex: none;
  width: 0;
  height: 100%;
  top: 0;
  text-align: center;
}
.ia-history--enhanced .ia-history__dot {
  position: absolute;
  top: var(--ia-history-axis, 110px);
  left: 0;
  transform: translate(-50%, -50%);
  margin: 0;
}
.ia-history--enhanced .ia-history__stem {
  display: block;
  position: absolute;
  top: 0;
  left: -1px;
  width: 1px;
  background: var(--ia-history-line);
  z-index: 0;
  pointer-events: none;
}
.ia-history--enhanced .ia-history__label {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  margin: 0;
  padding: 1px 3px;
  text-align: center;
  z-index: 1;
}

@media (max-width: 767px) {
  .ia-history--enhanced .ia-history__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
  }
  .ia-history--scrollable .ia-history__controls { display: flex; }
  .ia-history--enhanced .ia-history__track { width: 1000px; }
}
@media (prefers-reduced-motion: reduce) {
  .ia-history--enhanced .ia-history__viewport { scroll-behavior: auto; }
}
