/* Hub Messages — style aligné Espace Membres */
.u-initial-hidden { display: none; }
.hub-wrap {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 2rem 0 0;
  position: relative;
  z-index: 1;
}
.hub-hero {
  background: linear-gradient(135deg, rgba(248,231,2,.14), rgba(248,231,2,.08));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 1.45rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}
.hub-hero::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(var(--red), var(--gold));
}
.hub-kicker {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: .95;
  letter-spacing: .03em;
  margin-bottom: .65rem;
}
.hub-hero h1 span { color: var(--red); }
.hub-hero p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
  max-width: 660px;
}
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.hub-card {
  display: flex;
  align-items: center;
  gap: .95rem;
  min-height: 132px;
  padding: 1rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, #141414, #0f0f0f);
  color: var(--white);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.hub-card:hover { transform: translateY(-2px); border-color: rgba(248,231,2,.38); background: linear-gradient(145deg, #181818, #101010); box-shadow: 0 18px 50px rgba(0,0,0,.34), 0 0 22px rgba(248,231,2,.06); }
.hub-card-main { border-color: rgba(248,231,2,.22); }
.hub-card::after { content: ''; width: 8px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.06); transition: background .18s ease, box-shadow .18s ease; }
.hub-card.has-unread::after { background: linear-gradient(var(--red), var(--gold)); box-shadow: 0 0 18px rgba(248,231,2,.18); }
.hub-card-icon {
  width: 52px; height: 52px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  font-size: 1.55rem;
  flex: 0 0 auto;
}
.hub-card-content { flex: 1; min-width: 0; }
.hub-card-titleline {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}
.hub-count-badge {
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 .42rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(10,10,10,.86), 0 8px 18px rgba(209,0,0,.32);
}
.hub-count-badge[hidden] { display: none !important; }
.hub-card.has-unread {
  border-color: rgba(248,231,2,.42);
  box-shadow: 0 18px 45px rgba(0,0,0,.28), 0 0 0 1px rgba(248,231,2,.12) inset;
}

.hub-card strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.hub-card small { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; color: var(--muted); font-size: .75rem; line-height: 1.35; margin-top: .25rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.hub-card.has-unread small { color: #fff; background: rgba(209,0,0,.16); border-color: rgba(209,0,0,.28); font-weight: 800; }
.hub-card-action {
  flex: 0 0 auto;
  color: var(--gold);
  border: 1px solid rgba(248,231,2,.28);
  background: rgba(248,231,2,.08);
  border-radius: 999px;
  padding: .42rem .72rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hub-tip {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin-top: .95rem;
  padding: 1rem;
  border: 1px solid rgba(248,231,2,.2);
  background: rgba(248,231,2,.06);
  border-radius: var(--r-lg);
}
.hub-tip-icon { font-size: 1.4rem; }
.hub-tip strong { display:block; margin-bottom:.2rem; }
.hub-tip p { color: var(--muted); font-size: .82rem; line-height: 1.55; margin: 0; }

@media (max-width: 720px) {
  .hub-wrap { width: min(100% - 22px, 680px); padding-top: 1rem; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card { min-height: 118px; align-items: flex-start; }
  .hub-card-action { align-self: flex-start; }
}


/* Patch UX v19 — hub messages plus dashboard */
.hub-card { position: relative; }
.hub-card-titleline strong { letter-spacing: .01em; }
.hub-card.has-unread .hub-card-icon { background: rgba(248,231,2,.12); box-shadow: inset 0 0 0 1px rgba(248,231,2,.18); }
.hub-tip { box-shadow: 0 14px 38px rgba(0,0,0,.18); }
@media (max-width: 720px) {
  .hub-card { min-height: 106px; }
  .hub-card::after { width: 6px; height: 36px; }
  .hub-card-action { padding: .38rem .62rem; }
}
