/* ====== ARCHIVES & TAXONOMIES ÉVÉNEMENTS / CHRONOLOGIE ====== */
.chronologie-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding: 2rem 0;
}

.chronologie-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  z-index: 1;
}

/* Bloc principal */
.chronologie-item {
  position: relative;
  display: block;
  width: 50%;
  overflow: visible; /* important pour le point rouge */
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  transition: all 0.3s ease;
  z-index: 2;
}

/* Alternance gauche/droite */
.chronologie-item:nth-child(odd) {
  margin-right: auto;
  padding-right: 5%;
}
.chronologie-item:nth-child(even) {
  margin-left: auto;
  padding-left: 5%;
}

/* Pseudo-élément : point rouge (sauf intro) */
.chronologie-item:not(.chronologie-intro)::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  background: #ff0000;
  border: 3px solid #111;
  border-radius: 50%;
  z-index: 3;
}

/* Position du point sur la frise (sauf intro) */
.chronologie-item:nth-child(odd):not(.chronologie-intro)::before {
  left: calc(100% - 11px);
}
.chronologie-item:nth-child(even):not(.chronologie-intro)::before {
  left: calc(0% - 11px);
}

/* Lien interne */
.chronologie-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.chronologie-header {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.chronologie-title {
  font-family: "Marcellus SC", serif;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: #ff4444;
}

.chronologie-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
  margin: 0;
  padding-bottom: 3rem; /* espace prévu pour le footer */
}

/* Footer style barre d'adresse */
.chronologie-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  box-sizing: border-box;
}

.chronologie-footer a {
  color: #ff4444;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  text-decoration: none;

  /* Style demandé */
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.chronologie-footer a:hover {
  background: #333;
  text-decoration: none;
  color: #ff4444;
}

/* Hover global sur la carte */
.chronologie-item:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: #ff4444;
  transform: translateY(-4px);
}

/* === Card d'intro pleine largeur (taxonomy-genre.php) === */
.chronologie-intro {
  width: 100% !important;
  margin-bottom: 3rem;
}
/* Désactiver le hover pour l'intro */
.chronologie-intro:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  transform: none;
}

/* Barre noire pour le titre de la catégorie */
.chronologie-intro .chronologie-header {
  background: #000;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px 8px 0 0;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.chronologie-intro .chronologie-title {
  color: #fff;
}

.chronologie-intro .chronologie-excerpt {
  color: #ddd;
  padding-bottom: 0; /* pas de footer ici */
}

/* Responsive mobile */
@media (max-width: 768px) {
  .chronologie-item {
    width: 100%;
    padding-left: 2rem;
    padding-right: 0;
  }

  .chronologie-timeline::before {
    left: 8px;
  }

  .chronologie-item:not(.chronologie-intro)::before {
    left: calc(8px - 11px);
  }

  .chronologie-intro {
    width: 100% !important;
    margin-bottom: 2rem;
  }
}
/* === Page single événement === */
.chronologie-single {
  width: 100% !important;
  margin-bottom: 3rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

/* Header translucide */
.chronologie-single-header {
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.chronologie-single-header .chronologie-meta-date {
  font-size: 0.85rem;
  color: #aaa;
  text-align: right;
}
.chronologie-single-header .chronologie-title {
  font-size: 2rem;
  margin: 0;
  color: #ff6600; /* Orange */
}

/* Contenu */
.chronologie-single-content {
  background: #000;
  padding: 2rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #ddd;
}

/* Footer meta */
.chronologie-single-footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #aaa;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: center;
}
.chronologie-single-footer .chronologie-meta-sep {
  margin: 0 0.5rem;
  color: #555;
}
.chronologie-single-footer a {
  color: #ff4444;
  text-decoration: none;
  font-weight: bold;
}
.chronologie-single-footer a:hover {
  text-decoration: underline;
}
/* Supprimer le point rouge sur la fiche single */
.chronologie-single::before {
  content: none;
}

/* Désactiver le hover pour la fiche single */
.chronologie-single:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  transform: none;
}