/* Styles spécifiques pour la page chronologie */

.page-grid {
  display: grid;
  gap: 16px;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.timeline {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--couleur-accent-dore);
}

.timeline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.timeline-nav a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(110, 48, 113, 0.08);
  border: 1px solid rgba(110, 48, 113, 0.2);
  color: var(--couleur-coeur-mystique);
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.timeline-nav a:hover {
  transform: translateY(-2px);
  background: rgba(110, 48, 113, 0.14);
  border-color: var(--couleur-accent-dore);
}

/* Animation d'apparition des cycles et événements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style des cycles */
.cycle {
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 5px solid var(--couleur-accent-dore);
  background: #f9f9f9;
  animation: fadeIn 0.5s ease-in-out;
}

.cycle h2 {
  font-size: 1.5rem;
  color: var(--couleur-coeur-mystique);
  margin-bottom: 0.5rem;
}

/* Style des événements */
.event {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(137, 134, 147, 0.32);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: fadeIn 0.5s ease-in-out;
}

.event:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event h3 {
  font-size: 1.2rem;
  color: var(--couleur-coeur-mystique);
  margin-bottom: 0.5rem;
}

.event a {
  color: var(--couleur-coeur-mystique);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event a:hover {
  color: var(--couleur-accent-dore);
}

/* Style des liens */
.cycle-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.cycle-link:hover {
  color: var(--couleur-accent-dore);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cycle-link h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--couleur-coeur-mystique);
}

.cycle-link p {
  margin: 0;
}