/* ====== SECTION 2 — Programme filtrable ====== */

/* Overlay ivoire plus opaque (texte dense) au-dessus du panorama global */
#section-2 {
  position: relative;
}
#section-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0.90) 0%,
    rgba(250, 247, 242, 0.94) 100%
  );
  pointer-events: none;
  z-index: 0;
}
#section-2 > .section-inner {
  position: relative;
  z-index: 1;
}

.s2-now {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--burgundy);
  color: var(--ivory);
  border-radius: 0;
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
}
.s2-now .now-left { position: relative; z-index: 2; }
.s2-now .now-eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 700;
}
.s2-now .now-eyebrow .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
  70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.s2-now .clock {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: white;
}
.s2-now .clock-sub {
  font-size: var(--fs-xs);
  color: white;
  opacity: 0.75;
  margin-top: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.s2-now .now-right { position: relative; z-index: 2; }
.s2-now .now-intro {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: white;
  opacity: 0.85;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  max-width: 540px;
  font-weight: 400;
}
.s2-now .now-card-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: white;
  opacity: 0.7;
  margin-bottom: 10px;
  font-weight: 700;
}
.s2-now h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-m);
  line-height: 1.15;
  margin-bottom: 10px;
  color: white;
}
.s2-now .speaker { font-size: var(--fs-sm); color: white; opacity: 0.9; font-weight: 500; }
.s2-now .next {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: var(--fs-sm);
  color: white;
  opacity: 0.75;
}
.s2-now .next strong { color: white; opacity: 1; font-weight: 700; }

/* Filters */
.s2-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: white;
  padding: 8px 14px;
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.18s ease;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.filter-chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
.filter-chip.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--ivory);
}
.filter-chip .count { margin-left: 6px; opacity: 0.6; font-size: var(--fs-eyebrow); }

.s2-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  width: 300px;
}
.s2-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: var(--fs-sm);
  flex: 1;
  color: var(--ink);
}
.s2-search svg { color: var(--grey); }

/* Timeline */
.timeline { position: relative; padding: var(--space-3) 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 110px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}

.tl-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-3);
  padding: 14px 0;
  position: relative;
  transition: all 0.2s ease;
}
.tl-item.dimmed { opacity: 0.2; pointer-events: none; }
.tl-item.past { opacity: 0.5; }
.tl-item.now {
  background: var(--burgundy-bg);
  padding: 14px;
  margin: 0 -14px;
  border-left: 3px solid var(--burgundy);
}

.tl-time {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-data-m);
  color: var(--ink);
  line-height: 1;
  text-align: right;
  padding-right: var(--space-3);
}
.tl-item.now .tl-time { color: var(--burgundy); }

.tl-dot {
  position: absolute;
  left: 110px; top: 24px;
  width: 10px; height: 10px;
  border-radius: 0;
  background: white;
  border: 2px solid var(--burgundy);
  transform: translate(-50%, 0) rotate(45deg);
  z-index: 2;
}
.tl-item.now .tl-dot {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.tl-item.past .tl-dot { background: var(--line); border-color: var(--grey-light); }

.tl-content { padding-left: var(--space-3); }
.tl-meta {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.tl-meta .theme-tag {
  padding: 3px 10px;
  border-radius: 0;
  background: var(--burgundy-bg);
  color: var(--burgundy);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  font-weight: 700;
}
.tl-meta .theme-tag.t-fiscal    { background: #EDE3D2; color: #6B5420; }
.tl-meta .theme-tag.t-rh        { background: #E0D9E5; color: #4B3368; }
.tl-meta .theme-tag.t-marketing { background: #D9E5DD; color: #254E35; }
.tl-meta .theme-tag.t-leadership { background: var(--burgundy-bg); color: var(--burgundy); }
.tl-meta .theme-tag.t-bienetre  { background: #E0DEDA; color: #4A433A; }
.tl-meta .theme-tag.t-festif    { background: #F5E2C7; color: #7A4810; }
.tl-meta .theme-tag.t-vision    { background: #DDE3EA; color: #274160; }

.tl-title {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}
.tl-item.now .tl-title { color: var(--burgundy); }

.tl-speaker {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.tl-speaker .avatar {
  width: 32px; height: 32px;
  border-radius: 0;
  background: var(--burgundy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.04em;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.tl-speaker .avatar img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: white;
}
.tl-speaker .avatar:hover,
.tl-speaker a:hover .avatar,
.tl-speaker a:focus-visible .avatar {
  transform: scale(1.15);
}
@media (hover: none) {
  .tl-speaker a:active .avatar { transform: scale(1.15); }
}

.tl-empty {
  text-align: center;
  padding: var(--space-6) 0;
  color: var(--grey);
  font-size: var(--fs-body);
}

/* Responsive */
@media (max-width: 800px) {
  .s2-now { grid-template-columns: 1fr; }
  .s2-search { width: 100%; }
  .s2-filters { flex-direction: column; align-items: stretch; }
}

/* Phones */
@media (max-width: 600px) {
  .s2-now {
    padding: var(--space-3);
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }
  .s2-now .clock { font-size: 44px; }
  .s2-now .now-intro {
    font-size: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    max-width: 100%;
  }
  .s2-now h2 { font-size: 22px; }

  .s2-filters { gap: var(--space-2); padding: var(--space-2) 0; }
  .filter-chip { padding: 7px 10px; font-size: 10px; }
  .s2-search { padding: 8px 12px; }

  /* Timeline : colonne temps plus étroite + wrap safer */
  .timeline::before { left: 70px; }
  .tl-item {
    grid-template-columns: 70px 1fr;
    gap: var(--space-2);
    padding: 12px 0;
  }
  .tl-item.now { padding: 12px; margin: 0 -12px; }
  .tl-time {
    font-size: 16px;
    padding-right: var(--space-2);
  }
  .tl-dot { left: 70px; top: 20px; }
  .tl-content {
    padding-left: var(--space-2);
    min-width: 0;
  }
  .tl-meta {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 9px;
  }
  .tl-meta .theme-tag { font-size: 9px; padding: 2px 7px; }
  .tl-title { font-size: 16px; line-height: 1.25; }
  .tl-speaker { font-size: 12px; }
  .tl-speaker .avatar { width: 28px; height: 28px; }
}

/* Small phones */
@media (max-width: 400px) {
  .s2-now .clock { font-size: 36px; }
  .timeline::before { left: 56px; }
  .tl-item { grid-template-columns: 56px 1fr; }
  .tl-dot { left: 56px; }
  .tl-time { font-size: 14px; padding-right: 6px; }
}

/* Lien discret pour le speaker quand website renseigné */
.tl-speaker a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}
.tl-speaker a:hover { color: var(--burgundy); text-decoration: underline; }
