/* ##########################################################################
   BLOC 42 — TIMELINE “3 FILS” (Nancy : Hypnose / Art nouveau / SEP)
   Dernière MàJ : 28/02/2026
   Wrapper HTML : .sep-tl3
   ########################################################################## */

.sep-tl3{
  color: var(--sep-ink);
}

/* Hero sans image -> pas de voile blanc */
.sep-hero--plain::after{ display:none; }

/* zone de lecture */
.sep-tl3-main{
  max-width: var(--sep-container, 1060px);
  margin-inline: auto;
  padding-inline: var(--sep-gutter, 12px);
}

/* --- Légende --- */
.sep-tl3-legend{
  margin-top: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
}
.sep-tl3-leg{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 750;
  color: var(--sep-muted);
}
.sep-tl3-dotleg{
  width: .85rem;
  height: .85rem;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(27,19,39,.06);
}
.sep-tl3-dotleg.is-hyp{ background: var(--sep-p1-accent); }
.sep-tl3-dotleg.is-art{ background: #c9a227; } /* RÉGLAGE RAPIDE : “or” Art nouveau */
.sep-tl3-dotleg.is-sep{ background: var(--sep-accent); }

/* --- Contrôles (JS) --- */
.sep-tl3-controls{
  display:none;
  margin-top: .85rem;
  gap: .65rem;
  flex-wrap: wrap;
}
.sep-js .sep-tl3-controls{ display:flex; }

.sep-tl3-note{
  margin: .65rem 0 0;
  color: var(--sep-muted);
  font-size: .95rem;
}

/* --- Timeline : 3 lignes verticales derrière la liste --- */
.sep-tl3-list{
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.sep-tl3-list::before{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 120px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: .35;

  background:
    linear-gradient(var(--sep-p1-accent), var(--sep-p1-accent)) 20px 0 / 2px 100% no-repeat,
    linear-gradient(#c9a227, #c9a227)                         59px 0 / 2px 100% no-repeat,
    linear-gradient(var(--sep-accent), var(--sep-accent))     98px 0 / 2px 100% no-repeat;
}

/* item : 3 colonnes (gauche / axe / droite) */
.sep-tl3-item{
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: start;
  gap: 1rem;
}

/* colonnes de contenu */
.sep-tl3-side{ min-width: 0; }
.sep-tl3-item.is-left  .sep-tl3-side:first-child{ justify-self: end; }
.sep-tl3-item.is-left  .sep-tl3-side:last-child{ display:none; }
.sep-tl3-item.is-right .sep-tl3-side:first-child{ display:none; }
.sep-tl3-item.is-right .sep-tl3-side:last-child{ justify-self: start; }

/* carte */
.sep-tl3-card{
  width: min(520px, 100%);
}
.sep-tl3-title{
  margin: .2rem 0 .5rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.sep-tl3-text{
  margin: 0;
  color: var(--sep-muted);
  line-height: var(--sep-lh, 1.85);
}
.sep-tl3-soul{
  margin: .7rem 0 0;
  color: var(--sep-muted);
}

/* badges internes */
.sep-tl3-badges{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  margin-bottom:.5rem;
}
.sep-tl3-tag{
  display:inline-flex;
  align-items:center;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  border: 1px solid rgba(27,19,39,.10);
  background: rgba(27,19,39,.03);
}
.sep-tl3-tag.is-hyp{ color: var(--sep-p1-accent); background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.22); }
.sep-tl3-tag.is-art{ color: #8a6a00;           background: rgba(201,162,39,.10); border-color: rgba(201,162,39,.28); }
.sep-tl3-tag.is-sep{ color: var(--sep-accent); background: rgba(109,40,217,.08); border-color: rgba(109,40,217,.22); }
.sep-tl3-tag.is-multi{ color: var(--sep-ink); background: rgba(27,19,39,.04); border-color: rgba(27,19,39,.12); }

/* axe central : dot + date */
.sep-tl3-mid{
  position: relative;
  min-height: 1px;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding-top: .3rem;
}

/* position horizontale du “dot” selon fil */
.sep-tl3-dot{
  --dot-x: 59px; /* centre (art) par défaut */
  position: absolute;
  top: .35rem;
  left: var(--dot-x);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translateX(-50%);
  border: 2px solid #fff;
  box-shadow: 0 10px 26px rgba(27,19,39,.16);
}
.sep-tl3-dot.is-hyp{ --dot-x: 20px; background: var(--sep-p1-accent); }
.sep-tl3-dot.is-art{ --dot-x: 59px; background: #c9a227; }
.sep-tl3-dot.is-sep{ --dot-x: 98px; background: var(--sep-accent); }

/* multi : 3 petits points */
.sep-tl3-dot.is-multi{
  --dot-x: 59px;
  background: #c9a227;
  box-shadow:
    -39px 0 0 0 var(--sep-p1-accent),
     39px 0 0 0 var(--sep-accent),
     0 10px 26px rgba(27,19,39,.16);
}

/* date */
.sep-tl3-date{
  margin-top: 1.25rem; /* laisse la place au dot */
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--sep-ink);
  opacity: .80;
  font-size: .95rem;
}

/* details */
.sep-tl3-details{
  margin-top: .85rem;
  border: 1px solid rgba(27,19,39,.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(27,19,39,.06);
  overflow: hidden;
}
.sep-tl3-details > summary{
  cursor: pointer;
  padding: .8rem .9rem;
  font-weight: 850;
  list-style: none;
}
.sep-tl3-details > summary::-webkit-details-marker{ display:none; }
.sep-tl3-details-body{
  padding: 0 .9rem .9rem;
  color: var(--sep-muted);
  line-height: var(--sep-lh, 1.85);
}

/* petit bloc KPI */
.sep-tl3-kpi{
  margin-top: .9rem;
  padding: .85rem 1rem;
  border-radius: var(--sep-radius-lg);
  border: 1px solid rgba(27,19,39,.10);
  background: linear-gradient(180deg, rgba(109,40,217,.06), #fff 70%);
  box-shadow: 0 10px 26px rgba(27,19,39,.06);
}
.sep-tl3-kpi p{ margin:0; color: var(--sep-muted); }

/* actions */
.sep-tl3-actions{
  margin-top: .9rem;
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
}

/* Responsive : en mobile, on passe en 1 colonne (plus lisible) */
@media (max-width: 767.98px){
  .sep-tl3-list::before{ display:none; }
  .sep-tl3-item{
    grid-template-columns: 1fr;
    gap: .65rem;
  }
  .sep-tl3-item.is-left  .sep-tl3-side:last-child,
  .sep-tl3-item.is-right .sep-tl3-side:first-child{ display:block; }

  .sep-tl3-mid{
    align-items: flex-start;
    padding-left: .2rem;
  }
  .sep-tl3-dot{ position: static; transform:none; }
  .sep-tl3-date{ margin-top: 0; }
}

/* Focus JS : on “dim” les autres fils */
.sep-tl3[data-focus="hyp"] .track-art,
.sep-tl3[data-focus="hyp"] .track-sep{ opacity:.18; filter: grayscale(1); }
.sep-tl3[data-focus="art"] .track-hyp,
.sep-tl3[data-focus="art"] .track-sep{ opacity:.18; filter: grayscale(1); }
.sep-tl3[data-focus="sep"] .track-hyp,
.sep-tl3[data-focus="sep"] .track-art{ opacity:.18; filter: grayscale(1); }
