/* ===== FRISE INTERACTIVE DU LORE ===== */
.lore-timeline-shell{
  position:relative;
  margin-top:34px;
  padding:18px 54px;
  border:1px solid rgba(159,177,255,.18);
  border-radius:26px;
  background:
    radial-gradient(circle at 20% 30%,rgba(95,116,255,.12),transparent 28%),
    radial-gradient(circle at 80% 70%,rgba(168,96,255,.10),transparent 30%),
    linear-gradient(145deg,rgba(9,15,34,.88),rgba(4,8,21,.96));
  box-shadow:0 22px 70px rgba(0,0,0,.35),inset 0 0 55px rgba(109,133,255,.05);
  overflow:hidden;
}
.lore-timeline-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:rgba(147,167,255,.38) rgba(255,255,255,.04);
  cursor:grab;
  touch-action:pan-x;
  overscroll-behavior-x:contain;
}
.lore-timeline-viewport:active{cursor:grabbing}
.lore-timeline-viewport::-webkit-scrollbar{height:8px}
.lore-timeline-viewport::-webkit-scrollbar-track{background:rgba(255,255,255,.035);border-radius:999px}
.lore-timeline-viewport::-webkit-scrollbar-thumb{background:rgba(147,167,255,.36);border-radius:999px}
.lore-timeline-track{
  position:relative;
  display:flex;
  align-items:center;
  gap:170px;
  width:max-content;
  min-width:100%;
  height:480px;
  padding:0 100px;
}
.lore-timeline-line{
  position:absolute;
  left:45px;
  right:45px;
  top:50%;
  height:3px;
  transform:translateY(-50%);
  border-radius:999px;
  background:linear-gradient(90deg,transparent,rgba(145,168,255,.48) 8%,rgba(230,235,255,.9) 50%,rgba(164,126,255,.48) 92%,transparent);
  box-shadow:0 0 8px rgba(181,196,255,.7),0 0 26px rgba(105,129,255,.35);
}
.lore-timeline-line::after{
  content:"";
  position:absolute;
  inset:-8px 0;
  background:radial-gradient(ellipse at center,rgba(131,153,255,.12),transparent 68%);
  filter:blur(7px);
}
.timeline-node{
  position:relative;
  z-index:2;
  flex:0 0 132px;
  width:132px;
  height:132px;
  color:var(--text);
  text-decoration:none;
  animation:timelineFloat 4.6s ease-in-out infinite;
  outline:none;
}
.timeline-node:nth-of-type(3){animation-delay:-1.1s}
.timeline-node:nth-of-type(4){animation-delay:-2.2s}
.timeline-node:nth-of-type(5){animation-delay:-3.3s}
.timeline-node.node-top{transform:translateY(-112px)}
.timeline-node.node-bottom{transform:translateY(112px)}
.timeline-bubble{
  position:relative;
  display:block;
  width:132px;
  height:132px;
  overflow:hidden;
  border:2px solid rgba(200,211,255,.72);
  border-radius:50%;
  background:#070d20;
  box-shadow:
    0 0 0 7px rgba(115,138,255,.07),
    0 0 24px rgba(105,129,255,.32),
    0 15px 36px rgba(0,0,0,.45);
  transition:transform .42s cubic-bezier(.2,.8,.2,1),border-color .3s ease,box-shadow .35s ease,filter .35s ease;
}
.timeline-bubble::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(125deg,rgba(255,255,255,.24),transparent 28%,transparent 70%,rgba(135,106,255,.18));
  pointer-events:none;
}
.timeline-bubble img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transition:transform .55s cubic-bezier(.2,.75,.2,1),filter .35s ease;
}
.timeline-orbit{
  position:absolute;
  inset:-13px;
  z-index:-1;
  border:1px solid rgba(145,168,255,.18);
  border-radius:50%;
  opacity:.45;
  transition:opacity .35s ease,transform .55s ease,border-color .35s ease;
}
.timeline-orbit::before{
  content:"";
  position:absolute;
  width:7px;
  height:7px;
  top:7px;
  left:50%;
  border-radius:50%;
  background:#dce5ff;
  box-shadow:0 0 12px #a9bcff;
}
.timeline-name{
  position:absolute;
  left:50%;
  width:max-content;
  max-width:210px;
  padding:7px 13px;
  border:1px solid rgba(171,190,255,.22);
  border-radius:999px;
  background:rgba(5,9,24,.92);
  color:#f3f6ff;
  font-weight:850;
  letter-spacing:.03em;
  box-shadow:0 8px 26px rgba(0,0,0,.35);
  opacity:0;
  transform:translate(-50%,7px);
  transition:opacity .28s ease,transform .28s ease;
  pointer-events:none;
  white-space:nowrap;
}
.node-top .timeline-name{top:calc(100% + 17px)}
.node-bottom .timeline-name{bottom:calc(100% + 17px)}
.timeline-node:hover .timeline-bubble,
.timeline-node:focus-visible .timeline-bubble{
  transform:scale(1.1);
  border-color:#edf2ff;
  box-shadow:
    0 0 0 9px rgba(115,138,255,.11),
    0 0 38px rgba(116,143,255,.68),
    0 18px 44px rgba(0,0,0,.55);
  filter:brightness(1.08);
}
.timeline-node:hover .timeline-bubble img,
.timeline-node:focus-visible .timeline-bubble img{transform:scale(1.07)}
.timeline-node:hover .timeline-orbit,
.timeline-node:focus-visible .timeline-orbit{opacity:1;transform:rotate(75deg) scale(1.06);border-color:rgba(195,207,255,.48)}
.timeline-node:hover .timeline-name,
.timeline-node:focus-visible .timeline-name{opacity:1;transform:translate(-50%,0)}
.timeline-control{
  position:absolute;
  z-index:5;
  top:50%;
  width:42px;
  height:70px;
  transform:translateY(-50%);
  border:1px solid rgba(167,185,255,.22);
  border-radius:14px;
  background:rgba(6,11,28,.82);
  color:#e9eeff;
  font-size:2.1rem;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  transition:background .25s ease,border-color .25s ease,transform .25s ease;
}
.timeline-control:hover{background:rgba(21,31,67,.94);border-color:rgba(176,193,255,.5);transform:translateY(-50%) scale(1.05)}
.timeline-control-left{left:10px}
.timeline-control-right{right:10px}
.timeline-help{
  max-width:780px;
  margin:20px auto 0;
  color:var(--muted);
  text-align:center;
  font-size:.95rem;
}
@keyframes timelineFloat{
  0%,100%{margin-top:0}
  50%{margin-top:-9px}
}

@media(max-width:800px){
  .lore-timeline-shell{padding:12px 42px}
  .lore-timeline-track{height:420px;gap:105px;padding:0 55px}
  .timeline-node,.timeline-bubble{width:112px;height:112px;flex-basis:112px}
  .timeline-node.node-top{transform:translateY(-96px)}
  .timeline-node.node-bottom{transform:translateY(96px)}
  .timeline-control{width:34px;height:58px;font-size:1.75rem}
  .timeline-control-left{left:5px}
  .timeline-control-right{right:5px}
  .timeline-name{opacity:1;transform:translate(-50%,0);font-size:.88rem}
}
@media(max-width:520px){
  .lore-timeline-shell{margin-inline:-10px;border-radius:20px;padding-inline:32px}
  .lore-timeline-track{height:390px;gap:82px;padding:0 45px}
  .timeline-node,.timeline-bubble{width:96px;height:96px;flex-basis:96px}
  .timeline-node.node-top{transform:translateY(-83px)}
  .timeline-node.node-bottom{transform:translateY(83px)}
  .timeline-orbit{inset:-9px}
  .timeline-control{width:28px;height:52px;border-radius:10px}
}
@media(prefers-reduced-motion:reduce){
  .timeline-node{animation:none}
  .lore-timeline-viewport{scroll-behavior:auto}
  .timeline-bubble,.timeline-bubble img,.timeline-orbit,.timeline-name{transition:none}
}

/* Empêche la sélection et le glisser natif des portraits. */
.lore-timeline-viewport,
.timeline-node,
.timeline-bubble,
.timeline-bubble img{
  -webkit-user-select:none;
  user-select:none;
  -webkit-user-drag:none;
}
.timeline-bubble img{
  pointer-events:none;
}
.lore-timeline-viewport.is-dragging .timeline-node{
  pointer-events:none;
}
