/* Page d'accueil */

body.hub { display: flex; flex-direction: column; align-items: center; position: relative; }

/* Lueur d'ambiance : un calque par sens de gravité, un seul visible à la fois */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.glow.on { opacity: 1; }
.glow[data-d="down"]  { background: linear-gradient(0deg,   rgba(108,196,255,.20), transparent 55%); }
.glow[data-d="left"]  { background: linear-gradient(90deg,  rgba(255,111,174,.18), transparent 55%); }
.glow[data-d="up"]    { background: linear-gradient(180deg, rgba(255,216,77,.14),  transparent 55%); }
.glow[data-d="right"] { background: linear-gradient(270deg, rgba(98,227,160,.16),  transparent 55%); }

.hub-head { width: min(100%, 960px); padding: clamp(28px, 9vh, 80px) 0 30px; }
.hub-head h1 { font-size: clamp(36px, 8vw, 68px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.hub-head p { margin-top: 14px; max-width: 32em; color: var(--dim); font-size: clamp(15px, 2.4vw, 18px); line-height: 1.45; }

.cards {
  list-style: none; margin: 0; padding: 0; width: min(100%, 960px);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px;
}
.cards li { display: flex; }

.card {
  display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit;
  background: var(--panel); border: 2px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: border-color .15s;
}
a.card:hover, a.card:focus-visible { border-color: var(--accent); }
a.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #120e24; }
.thumb.empty {
  display: grid; place-items: center; font-size: 56px; font-weight: 800; color: var(--accent);
  background: repeating-linear-gradient(135deg, #120e24 0 14px, #17122c 14px 28px);
}
.card .body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.card .blurb { margin-top: 6px; color: var(--dim); font-size: 15px; line-height: 1.45; }
.card .status { margin-top: auto; padding-top: 14px; color: var(--accent); font-size: 14px; font-weight: 700; }
.card.soon { border-style: dashed; opacity: .75; }

.hub-foot { width: min(100%, 960px); margin-top: 44px; color: var(--dim); font-size: 13px; line-height: 1.5; }
