
/* ── SECTION CHRONOLOGIE ─────────────────────────── */
.chrono-section {
  padding: 3rem 0 5rem;
  background: #F0F2F5;
}

.chrono-section-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin: 0 0 2rem;
}

/* ── TIMELINE ────────────────────────────────────── */
.main-timeline {
  position: relative;
}

.chrono-axis-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ccc;
  transform: translateX(-50%);
  pointer-events: none;
}

/* Chaque ligne = une année */
.chrono-row {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 1.5rem;
}

/* Colonne axe */
.chrono-axis {
  display: flex;
  justify-content: center;
  padding-top: 0.85rem;
  position: relative;
  z-index: 2;
}

.chrono-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--amber);
  display: block;
  flex-shrink: 0;
}

.chrono-dot--intro {
  width: 18px;
  height: 18px;
  background: var(--amber);
  border-color: var(--amber);
}

.chrono-age {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--amber);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  flex-shrink: 0;
}

/* Colonnes */
.chrono-left,
.chrono-right {
  padding: 0 0.75rem;
}

/* ── CARD INTRO ──────────────────────────────────── */
.chrono-intro-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 1px 6px rgba(26,26,26,0.08);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-muted);
}

.chrono-intro-card--born {
  border-right: 4px solid var(--amber);
}

.chrono-intro-card--died {
  border-left: 4px solid #9e9e9e;
}

.chrono-intro-icon {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--amber);
  flex-shrink: 0;
}

.chrono-intro-card--died .chrono-intro-icon {
  color: #9e9e9e;
}

/* ── GROUPE ANNÉE ────────────────────────────────── */
.chrono-year-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chrono-year-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0 0.25rem;
  margin-bottom: 0.1rem;
}

/* ── CARD PERSONNE ───────────────────────────────── */
.chrono-person-card {
  --strip-color: #d4d4d4;
  background: #fff;
  border-radius: 5px;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 1px 4px rgba(26,26,26,0.07);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chrono-person-card--related {
  --strip-color: #8B5E3C;
}

.chrono-person-card--born {
  border-right: 3px solid var(--strip-color);
}

.chrono-person-card--born.chrono-person-card--related {
  border-left: 3px solid var(--strip-color);
  border-right: 3px solid var(--strip-color);
}

.chrono-person-card--died {
  border-left: 3px solid var(--strip-color);
  border-right: none;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 4px,
    rgba(0,0,0,0.10) 4px,
    rgba(0,0,0,0.10) 5px
  );
}

.chrono-person-card--died.chrono-person-card--related {
  border-left: 3px solid var(--strip-color);
  border-right: 3px solid var(--strip-color);
}

.chrono-dagger {
  font-style: normal;
  color: var(--ink-muted);
  margin-right: 0.3em;
  font-size: 0.85em;
}

.chrono-person-name {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
  flex-shrink: 0;
}

.chrono-person-name:hover { color: var(--amber); }

.chrono-date {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-family: var(--sans);
  white-space: nowrap;
}

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 575px) {
  .chrono-row {
    grid-template-columns: 28px 1fr;
    grid-template-areas:
      "axis left"
      "axis right";
    gap: 0;
  }

  .chrono-left  { grid-area: left; }
  .chrono-right { grid-area: right; margin-top: 0.5rem; }
  .chrono-axis  { grid-area: axis; }

  .chrono-axis-line { left: 14px; }

  .chrono-left,
  .chrono-right { padding: 0 0 0 0.5rem; }
}
