/* Page d'accueil — habillage propre à index.html, s'appuie sur les tokens de styles.css. */

.page-home { overflow-x: hidden; }

/* ============ Accroche ============ */
.home-hero {
  position: relative; overflow: hidden;
  padding: 92px 0 88px;
  border-bottom: 1px solid var(--border);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 234, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 234, 240, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 0%, transparent 78%);
}
.home-hero-glow {
  position: absolute; pointer-events: none;
  width: 760px; height: 560px; top: -220px; left: -160px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 90, 31, 0.32), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(34, 211, 238, 0.16), transparent 55%);
  filter: blur(26px);
}
.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.home-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Oxanium", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.74rem;
  color: var(--accent-2);
}
.home-kicker-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5);
  animation: home-pulse 2s ease-in-out infinite;
}
@keyframes home-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); }
}
.home-title {
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  font-weight: 800; line-height: 0.92; text-transform: uppercase;
  margin: 18px 0 22px;
  letter-spacing: 0.01em;
}
.home-title span {
  background: linear-gradient(120deg, var(--accent) 10%, #ffb066 60%, var(--accent-2) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-sub { max-width: 560px; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.home-sub strong { color: var(--text); }
.home-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.home-actions--center { justify-content: center; margin-top: 30px; }

/* Panneau "tableau de bord" à droite */
.home-board {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 90, 31, 0.08), transparent 55%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.home-board::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.home-board-head {
  font-family: "Oxanium", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem;
  color: var(--muted); margin-bottom: 16px;
}
.home-board-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.home-board-stats > div {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px;
}
.home-board-stats dt {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.66rem; color: var(--muted);
}
.home-board-stats dd {
  margin: 6px 0 0; font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 1.45rem; line-height: 1.1;
}
.home-board-stats small {
  font-family: "Inter", sans-serif; font-weight: 500; font-size: 0.72rem; color: var(--muted); margin-left: 4px;
}
.home-board-vs {
  margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.home-board-team {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px;
  font-family: "Oxanium", sans-serif; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.home-board-team--a { background: rgba(59, 130, 246, 0.14); color: #7fb0ff; border: 1px solid rgba(59, 130, 246, 0.35); }
.home-board-team--b { background: rgba(240, 68, 56, 0.14); color: #ff8b82; border: 1px solid rgba(240, 68, 56, 0.35); }
.home-board-x {
  font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--accent);
  text-shadow: 0 0 16px rgba(255, 90, 31, 0.6);
}

/* ============ Bandeau défilant ============ */
.home-ticker {
  overflow: hidden; background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.home-ticker-track {
  display: flex; width: max-content; gap: 0;
  animation: home-ticker 36s linear infinite;
}
.home-ticker-track span {
  display: inline-flex; align-items: center;
  font-family: "Oxanium", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.9rem; color: var(--muted);
  padding: 0 28px;
}
.home-ticker-track span::after {
  content: "◆"; color: var(--accent); font-size: 0.55rem; margin-left: 28px; opacity: 0.8;
}
@keyframes home-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Prochains rendez-vous (API) ============ */
.home-next-list { display: grid; gap: 16px; }
.home-next {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255, 90, 31, 0.14), rgba(34, 211, 238, 0.06) 70%), var(--surface);
  border: 1px solid var(--accent); border-radius: 20px;
  padding: 26px 30px;
  box-shadow: 0 24px 50px -34px rgba(255, 90, 31, 0.6);
}
.home-next-label {
  font-family: "Oxanium", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.72rem; color: var(--accent);
}
.home-next-title {
  font-family: "Oxanium", sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-transform: uppercase; margin: 6px 0 4px;
}
.home-next-meta { color: var(--muted); font-size: 0.95rem; }
.home-next-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Sections génériques ============ */
.home-eyebrow {
  font-family: "Oxanium", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.72rem; color: var(--accent-2); margin-bottom: 10px;
}
.home-eyebrow--live { color: var(--accent); }

/* ============ Le mode : 4 étapes ============ */
.home-steps {
  list-style: none; margin-top: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
  counter-reset: none;
}
.home-step {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.2s ease;
}
.home-step:hover { transform: translateY(-4px); border-color: rgba(255, 90, 31, 0.5); box-shadow: 0 20px 40px -26px rgba(255, 90, 31, 0.5); }
.home-step:hover::before { opacity: 1; }
.home-step-num {
  position: absolute; top: 10px; right: 16px;
  font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: rgba(255, 255, 255, 0.05);
}
.home-step-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(255, 90, 31, 0.12); color: var(--accent);
}
.home-step-ic svg { width: 22px; height: 22px; }
.home-step h3 { font-size: 1.2rem; margin-bottom: 8px; position: relative; }
.home-step p { color: var(--muted); font-size: 0.95rem; position: relative; }

/* ============ Le terrain ============ */
.home-terrain {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
}
.home-terrain-copy .section-lead { margin-top: 10px; }
.home-facts { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.home-facts li {
  position: relative; padding-left: 30px; color: var(--muted); font-size: 0.97rem;
}
.home-facts li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 10px; height: 10px; border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.home-facts strong { color: var(--text); font-family: "Oxanium", sans-serif; }
.home-map {
  margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8);
}
.home-map img { display: block; width: 100%; height: auto; border-radius: 12px; }
.home-map figcaption { color: var(--muted); font-size: 0.86rem; margin-top: 12px; text-align: center; }

/* ============ Explorer : liens en cartes ============ */
.home-links {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.home-link {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-link:hover { transform: translateY(-4px); border-color: var(--accent-2); box-shadow: 0 20px 40px -26px rgba(34, 211, 238, 0.45); }
.home-link-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 4px;
  background: rgba(34, 211, 238, 0.12); color: var(--accent-2);
}
.home-link-ic svg { width: 20px; height: 20px; }
.home-link h3 { font-size: 1.1rem; }
.home-link p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.home-link-go {
  margin-top: 4px; color: var(--accent-2);
  font-family: "Oxanium", sans-serif; font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ============ Live ============ */
.home-live {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 32px;
}
.home-live::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #9146ff, #c9a6ff);
}
.home-live::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; pointer-events: none;
  background: radial-gradient(circle, rgba(145, 70, 255, 0.18), transparent 65%);
}
.home-live-copy { position: relative; display: flex; align-items: flex-start; gap: 18px; max-width: 620px; z-index: 1; }
.home-live-copy h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 4px 0 8px; }
.home-live-copy p { color: var(--muted); }
.home-live-ic {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(145, 70, 255, 0.16); color: #a970ff;
}
.home-live-ic svg { width: 24px; height: 24px; fill: currentColor; }
.home-live .btn-twitch { position: relative; z-index: 1; flex: none; }

/* ============ Appel final ============ */
.home-cta {
  position: relative; overflow: hidden;
  padding: 104px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
  border-top: 1px solid var(--border);
  text-align: center;
}
.home-cta::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 720px; height: 420px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.22), transparent 62%);
  filter: blur(28px);
}
.home-cta-inner { position: relative; display: grid; gap: 16px; justify-items: center; }
.home-cta h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); text-transform: uppercase; }
.home-cta p { color: var(--muted); max-width: 520px; font-size: 1.05rem; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-terrain { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .home-hero { padding: 64px 0 60px; }
  .home-live { padding: 24px 22px; }
  .home-next { padding: 22px 20px; }
  .home-board { padding: 20px; }
  .home-cta { padding: 76px 0; }
  .home-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-ticker-track, .home-kicker-dot { animation: none !important; }
  .home-step, .home-link { transition: none !important; }
}
