/* ---- Page Anecdotes + Timeline ---- */
.container { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem; }

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.92);
  border-radius: 1.25rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
}
.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 300;
  font-family: var(--font-title);
}
.subtitle { font-size: 1.1rem; color: #7f8c8d; font-weight: 300; margin-bottom: 1.5rem; }

.btn-primary {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}
.btn-primary:hover { background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); transform: translateY(-2px); }

/* ---- Timeline ---- */
.timeline-container { position: relative; margin: 3rem 0; padding: 0 1rem; }
.timeline          { position: relative; max-width: 1000px; margin: 0 auto; }

.timeline-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3498db, #2c3e50);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Cartes des anecdotes */
.timeline-item {
  position: relative;
  margin: 40px 0;
  display: flex;
  align-items: center;
}
.timeline-item:nth-child(odd)  { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  background: white;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  width: 45%;
  cursor: default;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.15);
  border-color: #3498db;
}

.timeline-item:nth-child(odd)  .timeline-content { margin-right: auto; margin-left: 55%; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; margin-right: 55%; }

.timeline-content::before { display: none; }

.timeline-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  background: #3498db;
  border: 4px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 10px rgba(52,152,219,0.35);
  z-index: 10;
}

.timeline-date {
  position: absolute;
  left: 50%; top: -35px;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-body);
}

.anecdote-titre   { font-size: 1.2rem; color: #2c3e50; margin-bottom: 8px; font-weight: 600; font-family: var(--font-title); }
.anecdote-contenu { color: #555; line-height: 1.7; font-family: var(--font-body); font-size: 0.97rem; }
.anecdote-meta    { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee; font-size: 0.85rem; color: #7f8c8d; display: flex; justify-content: space-between; font-family: var(--font-body); }

/* Événements naissance / décès */
.timeline-birth, .timeline-death {
  position: relative;
  margin: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.life-event-card {
  background: white;
  padding: 1.2rem 3rem;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.15);
  text-align: center;
  width: 90%;
  max-width: 500px;
}
.birth-card { background: linear-gradient(135deg, #27ae60, #2ecc71); color: white; border: 3px solid #1e8449; }
.death-card { background: linear-gradient(135deg, #c0392b, #e74c3c); color: white; border: 3px solid #922b21; }
.life-icon  { font-size: 2.2rem; margin-bottom: 6px; }
.life-event-card h3 { font-size: 1.3rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 2px; font-family: var(--font-title); }
.life-date  { font-size: 0.95rem; opacity: 0.95; font-family: var(--font-body); }

/* Modal désactivée */
.btn-lire-plus {
  margin-top: 10px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #d4af37 0%, #c19b2a 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}
.btn-lire-plus:hover { background: linear-gradient(135deg, #c19b2a 0%, #a8841f 100%); transform: translateY(-2px); }

.anecdote-image {
  width: 100%;
  max-width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

@media (max-width: 700px) {
  .timeline-line { left: 24px; }
  .timeline-item { flex-direction: column !important; }
  .timeline-content {
    width: 80% !important;
    margin: 0 0 0 60px !important;
    margin-left: 60px !important;
  }
  .timeline-item .timeline-content::before { display: none; }
  .timeline-dot { left: 24px; }
  .timeline-date { left: 24px; }
}
