:root {
  --bg:       #fff;
  --fg:       #111;
  --fg-hi:    rgba(0,0,0,0.75);
  --fg-mid:   rgba(0,0,0,0.45);
  --fg-lo:    rgba(0,0,0,0.35);
  --fg-faint: rgba(0,0,0,0.22);
  --card-bg:  rgba(255,255,255,0.96);
  --lb-bg:    rgba(255,255,255,0.18);
}

[data-theme="dark"] {
  --bg:       #000;
  --fg:       #d0d0d0;
  --fg-hi:    rgba(255,255,255,0.75);
  --fg-mid:   rgba(255,255,255,0.45);
  --fg-lo:    rgba(255,255,255,0.28);
  --fg-faint: rgba(255,255,255,0.1);
  --card-bg:  rgba(10,10,10,0.97);
  --lb-bg:    rgba(0,0,0,0.55);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  overflow: hidden;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--fg);
  cursor: none;
}

canvas { display: block; cursor: none; }

/* ── LOADING SCREEN ── */
#ls {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: opacity 1.8s ease;
}
#ls.exiting { opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }

#ls-intro-name {
  font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  font-size: clamp(13px, 1.3vw, 22px);
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-mid);
  min-height: 1.8em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.12s ease;
  user-select: none;
}

#ls-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.ls-line {
  font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  font-size: clamp(16px, 1.6vw, 28px);
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#ls-line-3 {
  font-size: clamp(20px, 2.2vw, 36px);
  font-weight: 600;
  margin-top: 8px;
}
.ls-line.visible { opacity: 1; transform: translateY(0); }

#ls-pct-wrap {
  font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--fg-lo);
  letter-spacing: 0.08em;
}

#ls-enter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  border: none;
  padding: 11px 30px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.2s ease;
}
[data-theme="dark"] #ls-enter { background: #fff; color: #111; }
#ls-enter.visible { opacity: 1; pointer-events: auto; }
#ls-enter:hover { transform: scale(1.04); }

/* ── MUTE ── */
#btn-mute {
  position: fixed;
  top: 34px;
  right: 28px;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--fg);
  opacity: 0.5;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.2s ease;
  padding: 0;
  line-height: 1;
}

#btn-mute:hover { opacity: 0.85; transform: scale(1.15); }
#btn-mute.muted  { opacity: 0.25; }

#branding {
  position: fixed;
  bottom: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: 0.3;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 50;
  transition: opacity 0.2s, color 0.2s;
}
#branding .branding-logo--col { display: none; }
#branding:hover {
  opacity: 1;
  color: #e63946;
}
#branding:hover .branding-logo--bw  { display: none; }
#branding:hover .branding-logo--col { display: block; }

/* Credits overlay */
#credits-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#credits-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
#credits-inner {
  background: var(--card-bg);
  border: 1px solid rgba(128,128,128,0.15);
  border-radius: 6px;
  padding: 48px 52px;
  max-width: 520px;
  width: 90%;
  position: relative;
  font-family: 'Inter', sans-serif;
}
#credits-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--fg-mid);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
#credits-close:hover { color: var(--fg); }
.credits-concept h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 16px;
}
.credits-concept p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-mid);
  margin: 0 0 10px;
}
.credits-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(128,128,128,0.12);
}
.credits-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-lo);
  margin: 0 0 12px;
}
.credits-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.credits-section li {
  font-size: 11px;
  line-height: 1.8;
  color: var(--fg-mid);
}
.credits-section a { color: var(--fg); text-decoration: underline; }
.credits-section a:hover { color: #e63946; }
.credits-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(128,128,128,0.12);
  text-align: right;
}
.credits-footer img { opacity: 0.7; transition: opacity 0.2s; }
.credits-footer img:hover { opacity: 1; }

#btn-theme {
  position: fixed;
  top: 34px;
  right: 62px;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--fg);
  opacity: 0.5;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.2s ease;
  padding: 0;
  line-height: 1;
}
#btn-theme:hover { opacity: 0.85; transform: scale(1.15); }

#mode-tab {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--fg-faint);
  border-radius: 28px;
  padding: 3px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0s;
}
#mode-tab.visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.2s ease 1.8s;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: none;
  border-radius: 22px;
  background: transparent;
  color: var(--fg-mid);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active {
  background: var(--fg);
  color: var(--bg);
}

.tl-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--fg-faint);
  border-radius: 50%;
  color: var(--fg-lo);
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, border-color 0.2s, color 0.2s;
}
.tl-nav-btn.visible { opacity: 1; pointer-events: auto; }
.tl-nav-btn:hover { border-color: var(--fg-mid); color: var(--fg); }
.tl-nav-btn:disabled { opacity: 0.2 !important; pointer-events: none; }
#tl-nav-prev { left: 28px; }
#tl-nav-next { right: 28px; }

/* ── CURSEUR + HOVER TOOLTIP ── */
#hover-tip {
  position: fixed;
  z-index: 9998;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-mid);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  user-select: none;
}
#hover-tip.visible { opacity: 1; }

#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-mid);
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease, width 0.15s ease, height 0.15s ease;
  will-change: left, top;
}

/* ── BG TYPO ── */
#bg-typo {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#bg-typo span {
  font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  font-size: 16vw;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  color: var(--fg);
  transition: opacity 0.8s ease, color 1s ease;
  user-select: none;
  line-height: 1;
}

/* ── TITLE ── */
#title {
  position: fixed;
  top: 36px;
  left: 24px;
  transform: translateX(0);
  font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-lo);
  pointer-events: none;
  z-index: 10;
}

#hint {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-faint);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

/* ── TIMELINE TRACK (wrapper scroll mobile) ── */
#timeline-track {
  position: absolute;
  inset: 0;
  width: 100%;
}

/* ── TIMELINE ── */
#timeline {
  position: fixed;
  bottom: 42px;
  left: 18%;
  right: 18%;
  height: 72px;
  overflow: visible;
  pointer-events: none;
  z-index: 10;
}

#timeline-line {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--fg-faint);
}

#timeline-years {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.tl-year {
  position: absolute;
  font-size: 8.5px;
  letter-spacing: 0.28em;
  color: var(--fg-faint);
  transform: translateX(-50%);
  bottom: -8px;
  user-select: none;
}

#timeline-dots {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

/* niveau 1 — sous la ligne */
.tl-dot {
  position: absolute;
  width: 8.5px;
  height: 8.5px;
  bottom: 8px;
  border-radius: 50%;
  background: var(--fg-faint);
  transform: translateX(-50%);
  transition: background 0.4s ease, transform 0.3s ease;
}

.tl-dot:hover {
  transform: translateX(-50%) scale(2.5);
  background: var(--fg-mid);
}

/* niveau 2 — au-dessus de la ligne */
.tl-dot.sub {
  width: 6px;
  height: 6px;
  bottom: 21px;
  opacity: 0.6;
}

.tl-dot.active {
  transform: translateX(-50%) scale(2.2);
}

#timeline-marker {
  position: absolute;
  bottom: 10px;
  width: 1px;
  height: 30px;
  background: var(--fg-lo);
  transform: translateX(-50%);
  opacity: 0;
  transition: left 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.5s ease, opacity 0.4s ease;
}

#timeline-marker-year {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8.5px;
  letter-spacing: 0.25em;
  white-space: nowrap;
  color: var(--fg-mid);
  transition: color 0.5s ease;
}

#timeline-marker-nom { display: none; }

/* ── LIGHTBOX ── */
#lightbox {
  position: fixed;
  inset: 0;
  background: var(--lb-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lb-img {
  width: 80vw;
  height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}

#lb-close {
  position: absolute;
  top: 32px;
  right: 40px;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--fg-mid);
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
}

#lb-close:hover { color: var(--fg); }

#lb-prev, #lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  background: none;
  border: none;
  color: var(--fg-lo);
  padding: 20px;
  transition: color 0.2s;
  line-height: 1;
}

#lb-prev { left: 32px; }
#lb-next { right: 32px; }
#lb-prev:hover, #lb-next:hover { color: var(--fg); }

#lb-counter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 0.35em;
  color: var(--fg-lo);
  text-transform: uppercase;
}

.nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-faint);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.nav-dot:hover { background: var(--fg-mid); }
.nav-dot.active { background: var(--fg); transform: scale(1.8); }

/* ── FLOAT INFO CARD ── */
.float-info-card {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  background: var(--card-bg);
  border-left: 6px solid #888;
  padding: 36px 39px 30px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.fic-periode {
  font-size: 16px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--fg-lo);
  margin-bottom: 15px;
  flex-shrink: 0;
}

.fic-nom {
  font-size: 29px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 21px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.fic-bar {
  width: 42px;
  height: 6px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.fic-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-mid);
  margin-bottom: 21px;
  flex-shrink: 0;
}

.fic-label {
  font-size: 15px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-lo);
  margin-bottom: 12px;
  margin-top: 18px;
  flex-shrink: 0;
}

.fic-artistes {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg-mid);
  flex-shrink: 0;
}

.fic-principes {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  font-style: normal;
  flex-shrink: 0;
}

/* ── LABELS 3D ── */
#labels {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
}

.label3d {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  color: var(--fg-mid);
  opacity: 0;
  transition: opacity 0.4s;
}

/* ── FLOATING CARDS ── */
.float-card {
  overflow: hidden;
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.88) translateY(12px);
  transition: opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1), transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 28px var(--fg-faint);
}

.float-card.visible { opacity: 1; transform: scale(1) translateY(0); }

.float-card img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.float-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── INFO PANEL ── */
/* ── TIMELINE TAB ── */
#tl-tab {
  position: absolute;
  bottom: calc(100% + 32px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--fg-faint);
  border-radius: 2px;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mid);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.35s ease, border-color 0.2s, color 0.2s;
}
#tl-tab.visible { opacity: 1; }
#tl-tab:hover { border-color: var(--fg-mid); color: var(--fg-hi); }
#tl-tab-year { color: inherit; }
.tl-tab-sep  { color: rgba(255,255,255,0.4); }
#tl-tab-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: rgba(255,255,255,0.9);
  color: #000;
  flex-shrink: 0;
}

/* ── TOOLTIP PANEL ── */
#tl-tooltip {
  position: fixed;
  bottom: 148px;
  max-width: 720px;
  width: calc(100vw - 32px);
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#tl-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 24;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#tl-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
#tl-tooltip.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#tl-tooltip-inner {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-top: 4px solid var(--fg-faint);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
#tl-tooltip-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--fg-faint);
  border-radius: 50%;
  background: transparent;
  color: var(--fg-mid);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  z-index: 1;
}
#tl-tooltip-close:hover { border-color: var(--fg-mid); color: var(--fg); }
#tl-tooltip-scroll {
  max-height: 68vh;
  overflow-y: auto;
  padding: 32px 36px;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-faint) transparent;
}

/* skeleton */
.ip-skel {
  background: var(--fg-faint);
  border-radius: 3px;
  animation: ip-pulse 1.4s ease-in-out infinite;
}

@keyframes ip-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

.ip-skel-short { height: 10px; width: 80%; margin-bottom: 22px; }
.ip-skel-title { height: 30px; width: 82%; margin-bottom: 18px; }
.ip-skel-bar   { height: 4px;  width: 42px; margin-bottom: 26px; }
.ip-skel-text  { height: 9px;  width: 70%; margin-bottom: 11px; }
.ip-skel-text.w70 { width: 70%; }
.ip-skel-text.w85 { width: 85%; }

/* panel content */
#ip-periode {
  font-size: 14px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--fg-lo);
  margin-bottom: 10px;
  margin-top: 20px;

}

#ip-nom {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

#ip-bar {
  width: 36px;
  height: 3px;
  margin-bottom: 18px;
}

#ip-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.75;
  color: var(--fg-mid);
  margin-bottom: 16px;
}

#ip-citation {
  border-left: 2px solid var(--fg-faint);
  padding: 10px 0 10px 14px;
  margin: 4px 0 20px;
}
#ip-citation p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg-hi);
  margin-bottom: 6px;
}
#ip-citation cite {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-lo);
  font-style: normal;
}

#ip-wiki {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-lo);
  text-decoration: none;
  border-bottom: 1px solid var(--fg-faint);
  padding-bottom: 2px;
  margin-bottom: 22px;
  transition: color 0.2s;
  cursor: pointer;
}

#ip-wiki:hover { color: var(--fg); }

.ip-section-label {
  font-size: 8px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--fg-lo);
  margin-bottom: 8px;
  margin-top: 20px;

}

#ip-artistes { list-style: none; }

.ip-artiste {
  
  font-size: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--fg-faint);
  text-decoration: none;
  color: var(--fg-mid);
  transition: color 0.2s;
  cursor: default;

}

a.ip-artiste:hover { color: var(--fg); }
a.ip-artiste { cursor: pointer; }
.ip-artiste:last-child { border-bottom: none; }

.ip-artiste-nom   { font-size: 12px; }
.ip-artiste-meta  { font-size: 8px; letter-spacing: 0.12em; color: var(--fg-lo); white-space: nowrap; text-align: right; }

#ip-keypoints {
  font-size: 11px;
  line-height: 1.75;
  color: var(--fg-mid);

}

#ip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 20px;
  padding-bottom: 8px;
}

.ip-tag {
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid currentColor;
  opacity: 0.4;
}

/* Mobile */
@media (max-width: 768px) {
  #cursor { display: none; }
  #mode-tab { display: none; }
  #hint { display: none; }
  #nav-dots { display: none; }

  #ls { justify-content: flex-end; gap: 16px; padding-bottom: 80px; }

  #ls-lines {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  #ls-intro-name { display: none; }

  #title {
    font-size: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  #timeline {
    left: 0;
    right: 0;
  }

  #timeline-track {
    overflow: hidden;
    width: 1000px !important;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  #timeline-marker {
    left: 50% !important;
    transform: translateX(-50%);
    transition: background 0.5s ease, opacity 0.4s ease;
  }

  .tl-nav-btn {
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto;
  }
  #tl-nav-prev { left: 16px; }
  #tl-nav-next { right: 16px; }

  #tl-tooltip {
    bottom: 100px;
    width: 100vw;
    left: 0;
    transform: translateY(12px);
  }
  #tl-tooltip.open {
    transform: translateY(0);
  }
  #tl-tooltip-inner {
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 4px solid var(--fg-faint);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);
  }
  #tl-tooltip-scroll {
    padding: 20px 24px 32px;
    max-height: 58vh;
  }
  #tl-backdrop { display: block; }

  /* Textes panel mobile — hiérarchie 15px min */
  #ip-periode   { font-size: 11px; margin-top: 16px; margin-bottom: 8px; }
  #ip-nom       { font-size: 26px; margin-bottom: 12px; }
  #ip-desc      { font-size: 15px; line-height: 1.65; }
  #ip-citation p { font-size: 14px; line-height: 1.6; }
  #ip-citation cite { font-size: 11px; }
  #ip-wiki      { font-size: 12px; }
  .ip-section-label { font-size: 10px; }
  .ip-artiste-nom   { font-size: 15px; }
  .ip-artiste-meta  { font-size: 11px; }
  #ip-keypoints { font-size: 15px; line-height: 1.7; }
  .ip-tag       { font-size: 10px; }
}
