/* ===================================================================
   SpiritAlexanderson — Site officiel
   Design system : thème sombre "esport / carbone" + accents rouges
   =================================================================== */

/* ---------- Variables ---------- */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #0f0f12;
  --bg-soft:   #101014;
  --panel:     #16161b;
  --panel-2:   #1d1d23;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --red:       #ff2740;
  --red-deep:  #c40d22;
  --red-glow:  rgba(255, 39, 64, 0.45);
  --purple:    #9147ff;
  --purple-2:  #772ce8;

  --text:      #f1f1f4;
  --muted:     #a7a7b4;
  --muted-2:   #6f6f7d;

  --radius:    14px;
  --cut:       16px;            /* coin coupé des panneaux */
  --maxw:      1180px;

  --ff-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --ff-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  --shadow:    0 18px 40px -18px rgba(0, 0, 0, 0.8);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(145, 71, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(255, 39, 64, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Texture carbone très subtile sur l'ensemble du body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 4px);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.4rem);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Typographie ---------- */
.kicker {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  margin-top: 0.4rem;
}
.section-title .accent { color: var(--red); }

.lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

.section-head { margin-bottom: 2.4rem; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand .mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-weight: 700;
  border-radius: 9px;
  box-shadow: 0 0 18px var(--red-glow);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand small { color: var(--muted); font-family: var(--ff-body); font-weight: 500; font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a {
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 4px;
  background: var(--red); box-shadow: 0 0 8px var(--red-glow);
}

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

.burger {
  display: none;
  background: none; border: 1px solid var(--line-2);
  color: var(--text);
  width: 44px; height: 40px; border-radius: 9px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------- Boutons ---------- */
.btn {
  --b: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  box-shadow: 0 10px 24px -8px var(--red-glow);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px var(--red-glow); }
.btn-twitch {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(145,71,255,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }

/* ---------- Panneaux / cartes "carbone" ---------- */
.panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  padding: 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s;
}
.panel::after {
  /* coin rouge en bas à droite, façon overlay Twitch */
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: var(--cut); height: var(--cut);
  background: var(--red);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.panel--hover:hover { transform: translateY(-4px); border-color: var(--line-2); }
.panel--accent { border-left: 3px solid var(--red); }

.panel h3, .card-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.panel h3 .ico, .card-title .ico { color: var(--red); }
.panel p { color: var(--muted); }
.panel p + p { margin-top: 0.8rem; }

/* lien inline façon Twitch (violet) */
.tlink { color: var(--purple); font-weight: 600; }
.tlink:hover { text-decoration: underline; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-banner {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.35), var(--bg) 92%),
    linear-gradient(120deg, var(--red-deep), #25060c 55%, #0b0b14 100%);
  opacity: 0.9;
}
/* si une image assets/banner.jpg existe, on la pose par-dessus */
.hero-banner.has-img { background-image:
    linear-gradient(180deg, rgba(10,10,12,0.45), var(--bg) 95%),
    url("../assets/banner.jpg");
  background-size: cover; background-position: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: center;
}
.avatar {
  position: relative;
  width: clamp(120px, 22vw, 180px);
  aspect-ratio: 1;
  border-radius: 18px;
  border: 2px solid var(--red);
  box-shadow: 0 0 30px var(--red-glow);
  overflow: hidden;
  background: linear-gradient(135deg, #20202a, #0e0e12);
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.is-placeholder::after {
  content: "SA";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-weight: 700; font-style: italic;
  font-size: 3rem; color: var(--muted);
  letter-spacing: 2px;
}
.live-dot {
  position: absolute; top: 10px; left: 10px;
  display: none; align-items: center; gap: 6px;
  background: var(--red); color: #fff;
  font-family: var(--ff-display); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 6px;
}
.live-dot.is-live { display: inline-flex; }
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: pulse 1.4s infinite;
}

.hero h1 {
  font-family: var(--ff-display);
  font-weight: 700; font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 1px;
  overflow-wrap: break-word;
}
.hero .tagline {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-top: 0.6rem;
  max-width: 55ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* badges meta sous le titre */
.meta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem; font-weight: 500;
  padding: 0.4rem 0.8rem; border-radius: 999px;
}
.tag b { color: var(--text); font-weight: 600; }
.tag .ico { color: var(--red); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
}
.stat .num {
  font-family: var(--ff-display); font-weight: 700; font-style: italic;
  font-size: 1.9rem; color: #fff;
  line-height: 1;
}
.stat .lbl { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.5rem; }

/* ---------- Hub de cartes (accueil) ---------- */
.hub-card {
  display: flex; flex-direction: column;
  min-height: 180px;
  justify-content: space-between;
}
.hub-card .ico-lg { font-size: 1.8rem; }
.hub-card .go {
  font-family: var(--ff-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--red); font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- Spécifications PC ---------- */
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.spec-list { margin-top: 0.5rem; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { color: var(--muted); }
.spec-list .v { color: var(--text); font-weight: 500; text-align: right; }

/* ---------- Planning ---------- */
.schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.day {
  text-align: center;
  padding: 1.8rem 1rem;
}
.day .dow {
  font-family: var(--ff-display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 1.3rem; color: #fff;
}
.day .time {
  font-family: var(--ff-display); font-weight: 700;
  font-size: 2.4rem; color: var(--red);
  margin-top: 0.4rem; line-height: 1;
}
.day .game { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

.countdown {
  display: flex; justify-content: center; gap: 1rem;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.cd-cell {
  min-width: 84px; text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 0.6rem;
}
.cd-cell .n {
  font-family: var(--ff-display); font-weight: 700;
  font-size: 2.2rem; color: #fff; line-height: 1;
}
.cd-cell .u { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 0.35rem; }

/* ---------- Réseaux ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.social-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem;
}
.social-card .ico {
  width: 50px; height: 50px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: #fff; font-size: 1.4rem;
}
.social-card .meta b { font-family: var(--ff-display); font-style: italic; text-transform: uppercase; letter-spacing: 0.5px; font-size: 1.1rem; }
.social-card .meta span { display: block; color: var(--muted); font-size: 0.85rem; }
.social-card.tw .ico   { background: linear-gradient(135deg, var(--purple), var(--purple-2)); }
.social-card.x .ico    { background: #000; border: 1px solid var(--line-2); }
.social-card.yt .ico   { background: #ff0000; }
.social-card.dc .ico   { background: #5865f2; }
.social-card.ig .ico   { background: linear-gradient(135deg,#ff7a00,#ff2740); }
.social-card.don .ico  { background: linear-gradient(135deg, var(--red), var(--red-deep)); }

/* ---------- Soutien / donateurs ---------- */
.perks li {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.5rem 0; color: var(--muted);
}
.perks li::before { content: "✦"; color: var(--red); flex-shrink: 0; }

.donor-list li {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--line);
}
.donor-list li:last-child { border-bottom: 0; }
.donor-list .rank {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 0.85rem;
  background: rgba(255,255,255,0.06); border-radius: 7px; color: var(--muted);
}
.donor-list .rank.top { background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; }
.donor-list .name { flex: 1; font-weight: 500; }
.donor-list .amt { font-family: var(--ff-display); font-weight: 700; color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 0.35rem 0.8rem; border-radius: 999px;
  font-size: 0.85rem; color: var(--muted);
}

/* ---------- Page header (pages internes) ---------- */
.page-hero {
  padding-block: clamp(2.6rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,39,64,0.06), transparent);
}

/* fil d'ariane */
.crumb { color: var(--muted-2); font-size: 0.85rem; margin-bottom: 0.6rem; }
.crumb a:hover { color: var(--text); }

/* note / encart info */
.note {
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: rgba(145, 71, 255, 0.08);
  border: 1px solid rgba(145, 71, 255, 0.3);
  border-radius: 12px; padding: 1rem 1.2rem;
  color: var(--muted); font-size: 0.9rem;
}
.note .ico { color: var(--purple); flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 2.6rem;
  margin-top: 2rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer .brand { font-size: 1rem; }
.footer-soc { display: flex; gap: 0.6rem; }
.footer-soc a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  transition: all 0.2s;
}
.footer-soc a:hover { color: #fff; border-color: var(--red); box-shadow: 0 0 14px var(--red-glow); }
.footer-copy { color: var(--muted-2); font-size: 0.85rem; width: 100%; border-top: 1px solid var(--line); padding-top: 1.3rem; margin-top: 0.4rem; }

/* ---------- Icônes ---------- */
[data-ico] { display: inline-flex; align-items: center; justify-content: center; }
[data-ico] svg { width: 1em; height: 1em; }
.ico svg { width: 1em; height: 1em; }
.social-card .ico svg { width: 26px; height: 26px; }
.footer-soc a svg { width: 19px; height: 19px; }
.hub-card .ico-lg svg { width: 1.8rem; height: 1.8rem; }
.btn [data-ico] svg { width: 1.05em; height: 1.05em; }

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in { animation: rise 0.6s ease forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: rgba(12,12,15,0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.1rem, 4vw, 2.4rem) 1.4rem;
    gap: 0.2rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.8rem 0.5rem; font-size: 1.05rem; }
  .burger { display: block; }
  .nav-cta .btn { display: none; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .schedule { grid-template-columns: 1fr; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .meta-row, .hero-actions { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .brand small { display: none; }
  .hero h1 span { display: block; }  /* SPIRIT / ALEXANDERSON sur 2 lignes */
}
@media (max-width: 540px) {
  .grid-2, .grid-3, .grid-4, .social-grid, .stats { grid-template-columns: 1fr; }
}
