/* gtaonline.coffee — page d'accueil statique, même direction artistique que le portail (Cliffford) :
   surfaces sombres, accents lumineux, coins 3px, trame de points, liseré cyan. */
:root {
  --bg: #0e1014;
  --bg-panel: #171a21;
  --bg-input: #0f1218;
  --nav: #08090c;
  --border: #272b34;
  --border-strong: #383e4a;
  --text: #e7eaf1;
  --text-dim: #98a1b0;
  --cyan: #4d84ff;
  --violet: #9b6bff;
  --green: #35d07f;
  --orange: #f2a93a;
  --red: #ff5b52;
  --gold: #f5b731;
  --sans: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
/* `hidden` must win over the display rules below (.topbar-strip flex, .stats grid) until home.js reveals them. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  background-image: radial-gradient(ellipse 90% 55% at 50% -8%, rgba(77, 132, 255, 0.10), transparent);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  background: var(--nav);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { width: 36px; height: 24px; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.14em; color: #fff; line-height: 1; }
.brand-dot { color: var(--gold); }

.topbar-strip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa0ac;
  white-space: nowrap;
}
.strip-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  color: #9aa0ac;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.strip-live:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.strip-dot { width: 7px; height: 7px; border-radius: 50%; background: #5b6270; box-shadow: 0 0 0 2px rgba(91, 98, 112, 0.25); }
.strip-live.is-live { color: #fff; border-color: rgba(255, 91, 82, 0.55); background: rgba(255, 91, 82, 0.12); }
.strip-live.is-live .strip-dot { background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
.strip-live.is-live .strip-label { color: var(--red); }
.strip-label { font-weight: 800; }
.strip-value { color: #e7eaf1; font-weight: 700; letter-spacing: 0.08em; }
.strip-live .strip-value { font-weight: 500; text-transform: none; letter-spacing: 0.02em; font-size: 0.78rem; }
.strip-live.is-live .strip-value { text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; font-size: 0.66rem; }
.strip-unit { margin-left: 0.3rem; color: #6f7684; font-weight: 600; }
.strip-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.12); }
.strip-stat { display: inline-flex; align-items: baseline; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--red); }
  50% { box-shadow: 0 0 14px var(--red), 0 0 0 3px rgba(255, 91, 82, 0.25); }
}

/* ---- layout ---- */
.content { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 2.2rem 1.25rem 3rem; }

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(77, 132, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #1a1e27 0%, var(--bg-panel) 60%);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 0 rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.5);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent 5%, var(--cyan) 50%, transparent 95%);
  opacity: 0.7;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 55%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 55%);
}
.hero-body { position: relative; z-index: 1; padding: 3.2rem 2.5rem 2.6rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.kicker-line { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.kicker-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.headline {
  margin: 0 auto 0.9rem;
  max-width: 22ch;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.grad {
  background: linear-gradient(90deg, #7ea6ff 0%, var(--cyan) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub { margin: 0 auto 2rem; max-width: 52ch; font-size: 1rem; line-height: 1.65; color: var(--text-dim); }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.85rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.5rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #6f9dff 0%, var(--cyan) 55%, #3b6ee6 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(77, 132, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(77, 132, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { color: var(--text-dim); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { color: var(--text); border-color: #9146ff; background: rgba(145, 70, 255, 0.10); }

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0.95rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}
.foot-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.plat-row { display: inline-flex; align-items: center; gap: 1.1rem; }
.plat-row img { height: 18px; width: auto; opacity: 0.85; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.12)); }
.plat-row img.invert { filter: invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.12)); }

/* ---- section kicker ---- */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.2rem 0 1.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.section-kicker span { flex: 1; height: 1px; background: var(--border); }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.35rem 1.25rem;
  color: var(--text);
  background: linear-gradient(180deg, #1a1e27, var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 132, 255, 0.18), transparent 65%);
  opacity: 0; transition: opacity 0.2s ease;
}
.card-link:hover { border-color: rgba(77, 132, 255, 0.5); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px rgba(0, 0, 0, 0.45); }
.card-link:hover::before { opacity: 1; }
.card-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--cyan); background: rgba(77, 132, 255, 0.12); border: 1px solid rgba(77, 132, 255, 0.4);
  border-radius: 3px; box-shadow: 0 0 14px rgba(77, 132, 255, 0.18);
}
.card-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.card-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-open { color: var(--green); }
.badge-soon { color: var(--orange); }
.badge-twitch { color: #a970ff; }
.badge-twitch.is-live { color: var(--red); }
.badge-twitch.is-live .dot { animation: pulse 1.6s ease-in-out infinite; }
.card-title { margin: 0.4rem 0 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.card-text { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-dim); }
.card-cta { margin-top: auto; padding-top: 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--cyan); }
.card-cta .arrow { display: inline-block; transition: transform 0.15s ease; }
.card-link:hover .card-cta .arrow { transform: translateX(3px); }
.card-cta.muted { color: var(--text-dim); }
.card-soon { opacity: 0.8; }
.card-soon .card-num { color: var(--orange); background: rgba(242, 169, 58, 0.10); border-color: rgba(242, 169, 58, 0.35); box-shadow: none; }

/* ---- stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(23, 26, 33, 0.7);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.stat b { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.stat span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }

/* ---- footer : tout centré, filet en haut ; icônes rondes des réseaux (Simple Icons, CC0, SVG inline), sources, mentions ----
   Les « · » entre segments sont masqués par home.js / semaine.js quand ils tombent en début ou fin de ligne. */
.footer { margin-top: 2rem; padding: 1.6rem 1.25rem 1.5rem; background: var(--nav); color: #9aa0ac; font-size: 0.75rem; text-align: center; border-top: 1px solid var(--border); }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-logo { width: 26px; height: 18px; opacity: 0.85; }
.footer-name { font-weight: 700; letter-spacing: 0.14em; color: #e7eaf1; }
.footer-social, .topbar-social { display: flex; justify-content: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.social-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #c3c8d4;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-icon-twitch { --brand: #9146ff; }
.social-icon-youtube { --brand: #ff0000; }
.social-icon-discord { --brand: #5865f2; }
.social-icon:hover, .social-icon:focus-visible { color: var(--brand); border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); outline: none; }
.footer-sources, .footer-legal { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 0.55rem; row-gap: 0.15rem; line-height: 1.55; color: #6f7684; }
.footer-sources { font-size: 0.72rem; }
.footer-legal { font-size: 0.66rem; }
.footer-sources a { color: #9aa0ac; text-decoration: underline; text-underline-offset: 2px; }
.footer-sources a:hover { color: #fff; }
.footer .sep { color: #4a5160; }
.footer .sep.is-hidden { display: none; }

@media (max-width: 760px) {
  .cards, .stats { grid-template-columns: 1fr; }
  .hero-body { padding: 2.2rem 1.25rem 2rem; }
  .headline { font-size: 1.85rem; }
  .strip-stat, .strip-sep { display: none; }
  .topbar { padding: 0.7rem 1rem; }
  .brand-name { font-size: 0.85rem; }
  .strip-label { display: none; }
}
@media (max-width: 430px) {
  .brand-name { display: none; }
}
