/* ═══════════════════════════════════════════════════════════════════════════
   Eventoo Schedule — Frontend Styles
   Palette BIGTECH Africa (navy + ambre) — cohérente avec les pages
   Exposer / Get Your Pass du site.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  --evsch-navy:       #1e3a8a;
  --evsch-navy-dark:  #14233f;
  --evsch-navy-lt:    #eef2ff;
  --evsch-amber:      #f59e0b;
  --evsch-amber-dark: #d97706;
  --evsch-amber-lt:   #fffbeb;
  --evsch-ink:        #0f172a;
  --evsch-gray-bg:    #f8fafc;
  --evsch-gray-line:  #e2e8f0;
  --evsch-gray-text:  #64748b;
  --evsch-white:      #ffffff;
  --evsch-radius:     14px;
  --evsch-radius-sm:  10px;
  --evsch-shadow:     0 2px 12px rgba(15,23,42,.06);
  --evsch-font:       'Inter', system-ui, sans-serif;
  --evsch-font-head:  'Outfit', system-ui, sans-serif;
  --evsch-trans:      .2s cubic-bezier(.4,0,.2,1);
}

/* ── Root ─────────────────────────────────────────────────────────────── */
.evsch {
  font-family: var(--evsch-font);
  color: var(--evsch-ink);
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 12px 48px;
}
.evsch *, .evsch *::before, .evsch *::after { box-sizing: border-box; }

/* ── Error / Empty ────────────────────────────────────────────────────── */
.evsch-error {
  background: var(--evsch-amber-lt);
  border: 1px solid rgba(217,119,6,.3);
  border-radius: var(--evsch-radius-sm);
  padding: 14px 20px;
  font-size: .95rem;
  color: var(--evsch-navy-dark);
}

.evsch-empty {
  color: var(--evsch-gray-text);
  font-style: italic;
  padding: 24px 0;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   TABS JOURS
   ═══════════════════════════════════════════════════════════════════════ */
.evsch-days-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--evsch-gray-bg);
  border: 1px solid var(--evsch-gray-line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.evsch-day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background var(--evsch-trans), color var(--evsch-trans);
  font-family: var(--evsch-font);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.evsch-day-tab .evsch-day-short {
  font-family: var(--evsch-font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--evsch-ink);
  letter-spacing: .01em;
}

.evsch-day-tab .evsch-day-full {
  font-size: .74rem;
  font-weight: 500;
  color: var(--evsch-gray-text);
}

.evsch-day-tab:hover {
  background: rgba(30,58,138,.06);
}

.evsch-day-tab.is-active {
  background: var(--evsch-navy);
  box-shadow: 0 4px 14px -4px rgba(30,58,138,.45);
}

.evsch-day-tab.is-active .evsch-day-short,
.evsch-day-tab.is-active .evsch-day-full {
  color: #fff;
}
.evsch-day-tab.is-active .evsch-day-full { color: rgba(255,255,255,.75); }

/* ── Day panel ── */
.evsch-day-panel { display: none; }
.evsch-day-panel.is-active { display: block; animation: evschFadeIn .28s ease; }

/* ═══════════════════════════════════════════════════════════════════════
   TABS SALLES
   ═══════════════════════════════════════════════════════════════════════ */
.evsch-rooms-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--evsch-gray-line);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE / Edge legacy */
}
.evsch-rooms-nav::-webkit-scrollbar { display: none; } /* Chrome / Safari */

.evsch-room-tab {
  position: relative;
  padding: 12px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--evsch-font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--evsch-gray-text);
  transition: color var(--evsch-trans);
  white-space: nowrap;
}

.evsch-room-tab::after {
  content: '';
  position: absolute;
  left: 20px; right: 20px; bottom: -1px;
  height: 2px;
  background: transparent;
  transition: background var(--evsch-trans);
}

.evsch-room-tab:hover { color: var(--evsch-navy); }

.evsch-room-tab.is-active {
  color: var(--evsch-navy);
  background: transparent;
}
.evsch-room-tab.is-active::after { background: var(--evsch-amber); }

/* Room label small below title (markup optionnel) */
.evsch-room-tab small {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--evsch-gray-text);
  margin-top: 2px;
}

/* ── Room panel ── */
.evsch-room-panel { display: none; }
.evsch-room-panel.is-active { display: block; animation: evschFadeIn .24s ease; }

/* ═══════════════════════════════════════════════════════════════════════
   PROGRAM ROWS
   ═══════════════════════════════════════════════════════════════════════ */
.evsch-programs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evsch-program-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  background: var(--evsch-white);
  border-radius: var(--evsch-radius);
  box-shadow: var(--evsch-shadow);
  border: 1px solid var(--evsch-gray-line);
  overflow: hidden;
  transition: box-shadow var(--evsch-trans), transform var(--evsch-trans);
}

.evsch-program-row:hover {
  box-shadow: 0 8px 24px -8px rgba(15,23,42,.14);
  transform: translateY(-1px);
}

/* ── Time column ── */
.evsch-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 22px 18px 22px 22px;
  background: var(--evsch-gray-bg);
  border-right: 1px solid var(--evsch-gray-line);
  gap: 8px;
  min-width: 0;
}

.evsch-time {
  display: inline-block;
  font-family: var(--evsch-font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--evsch-navy);
  background: rgba(30,58,138,.08);
  border-radius: var(--evsch-radius-sm);
  padding: .35rem .6rem;
  white-space: nowrap;
}

.evsch-live-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 20px;
  animation: evschPulse 1.6s ease-in-out infinite;
}

/* ── Content column ── */
.evsch-content-col {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evsch-prog-title {
  margin: 0;
  font-family: var(--evsch-font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--evsch-ink);
  line-height: 1.4;
}

.evsch-prog-desc {
  display: inline-block;
  margin: 0;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--evsch-amber-dark);
  background: rgba(245,158,11,.12);
  padding: .2rem .55rem;
  border-radius: 6px;
  width: fit-content;
}

/* ── Section label (Modérateur / Intervenants) ── */
.evsch-section-label {
  font-family: var(--evsch-font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--evsch-gray-text);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   SPEAKERS / PERSONS
   ═══════════════════════════════════════════════════════════════════════ */
.evsch-speakers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.evsch-person {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--evsch-white);
  border: 1px solid var(--evsch-gray-line);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 340px;
}

/* Avatar */
.evsch-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--evsch-navy);
  border: 1px solid var(--evsch-gray-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.evsch-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evsch-avatar-initials {
  font-family: var(--evsch-font-head);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

/* Modérateur : distingué par une bordure ambre */
.evsch-person--moderator .evsch-avatar { border-color: var(--evsch-amber); border-width: 2px; }

/* Person info */
.evsch-person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.evsch-person-name {
  font-family: var(--evsch-font-head);
  font-size: .87rem;
  font-weight: 700;
  color: var(--evsch-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evsch-person-fn {
  font-size: .74rem;
  color: var(--evsch-gray-text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes evschFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes evschPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .evsch-program-row {
    grid-template-columns: 1fr;
  }

  .evsch-time-col {
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--evsch-gray-line);
    padding: 14px 18px;
  }

  .evsch-content-col {
    padding: 16px 18px;
  }

  .evsch-day-tab {
    padding: 10px 18px;
  }

  .evsch-person {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .evsch-room-tab {
    padding: 10px 14px;
    font-size: .85rem;
  }
}

@media (max-width: 480px) {
  .evsch-days-nav {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .evsch-days-nav::-webkit-scrollbar { display: none; }
  .evsch-day-tab {
    flex: 0 0 auto;
  }
}
