/* ==========================================================
   CHADOPRO — thème gaming sombre inspiré de l'Epic Games Store
   Changer les couleurs de la marque ici ↓
   ========================================================== */
:root {
  --bg: #101014;
  --bg-2: #18181c;
  --surface: #202024;
  --surface-2: #2a2a30;
  --border: #ffffff14;
  --text: #ffffff;
  --muted: #ffffffa6;
  --dim: #ffffff66;
  --accent: #8b5cf6;       /* violet Chadopro */
  --accent-2: #22d3ee;     /* cyan néon */
  --live: #ff3b5c;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Chakra Petch", "Inter", sans-serif;
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 48px 80px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; transition: .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7c4ef0; box-shadow: 0 0 24px #8b5cf680; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e5e5e5; }
.btn-ghost { background: var(--surface-2); }
.btn-ghost:hover { background: #3a3a42; }
.btn-block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 64px; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}
.logo-text { font-family: var(--display); font-weight: 700; letter-spacing: .12em; font-size: 18px; }

.topnav { display: flex; gap: 4px; }
.topnav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.topnav a:hover, .topnav a.active { color: var(--text); }
.topnav a.active { background: var(--surface); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.live-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  background: #ff3b5c22; color: var(--live);
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .1em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 #ff3b5c99; } 70% { box-shadow: 0 0 0 8px #ff3b5c00; } }

.cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); font-size: 11px; font-weight: 700;
  display: none; place-items: center;
}
.cart-count.show { display: grid; }
.burger { display: none; }

/* ---------- Sous-barre ---------- */
.subbar {
  position: sticky; top: 64px; z-index: 40;
  max-width: var(--max); margin: 0 auto; padding: 20px 48px;
  display: flex; align-items: center; gap: 24px;
  background: var(--bg);
}
.search {
  display: flex; align-items: center; gap: 10px;
  width: 260px; height: 40px; padding: 0 16px;
  background: var(--surface); border-radius: 99px; color: var(--dim);
}
.search:focus-within { outline: 1px solid var(--accent); color: var(--text); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.search input::placeholder { color: var(--dim); }
.subnav { display: flex; gap: 24px; }
.subnav a { color: var(--muted); font-size: 14px; }
.subnav a:hover { color: var(--text); }

/* ---------- Visuels provisoires ---------- */
.ph-fill, .ph {
  width: 100%; height: 100%; position: relative;
  background:
    radial-gradient(circle at 25% 20%, hsl(var(--h, 265) 90% 60% / .55), transparent 55%),
    radial-gradient(circle at 80% 85%, hsl(calc(var(--h, 265) + 50) 90% 55% / .45), transparent 50%),
    linear-gradient(135deg, hsl(var(--h, 265) 40% 18%), #0c0c10);
}
.ph-fill::after, .ph::after {
  content: attr(data-label);
  position: absolute; inset: auto 12px 12px auto;
  font-size: 11px; color: #ffffff55; letter-spacing: .05em;
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 240px; gap: 20px; margin-bottom: 56px; }
.hero-main {
  position: relative; aspect-ratio: 16 / 8.5; border-radius: 16px; overflow: hidden;
  background: var(--surface);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #000000cc 0%, #00000055 45%, transparent 75%);
}
.slide > .ph-fill::after { display: none; }
.slide > img { object-position: center 25%; }
.slide-content {
  position: absolute; z-index: 2; left: 48px; bottom: 48px; max-width: 420px;
}
.slide-tag {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .18em;
  color: var(--accent-2);
}
.slide h1 {
  font-family: var(--display); font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05; text-transform: uppercase; margin-bottom: 12px;
}
.slide p { color: var(--muted); margin-bottom: 24px; }
.slide.active .slide-content > * { animation: rise .6s both; }
.slide.active .slide-content > *:nth-child(2) { animation-delay: .06s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: .12s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hero-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hero-item {
  position: relative; width: 100%; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: var(--radius); text-align: left;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
}
.hero-item:hover { background: var(--surface); color: var(--text); }
.hero-item.active { background: var(--surface-2); color: var(--text); }
.thumb { width: 44px; height: 58px; flex: none; border-radius: var(--radius-sm); overflow: hidden; }
.thumb .ph-fill::after { display: none; }
.progress {
  position: absolute; inset: 0; z-index: -1;
  background: #ffffff10; transform-origin: left; transform: scaleX(0);
}
.hero-item { z-index: 0; }
.hero-item.active .progress { animation: fill var(--dur, 7000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Rangées de cartes ---------- */
.row { margin-bottom: 56px; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.row-head h2 { font-size: 20px; font-weight: 600; }
.chev { color: var(--dim); margin-left: 4px; }
.row-arrows { display: flex; gap: 8px; }
.arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); font-size: 20px; line-height: 1;
  display: grid; place-items: center;
}
.arrow:hover { background: #3a3a42; }

.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
#streamTrack { grid-auto-columns: calc((100% - 3 * 20px) / 4); }

.card { scroll-snap-align: start; cursor: pointer; }
.card-media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 12px; background: var(--surface);
}
.card-media.tall { aspect-ratio: 3 / 4; }
.card-media > :first-child { transition: transform .4s; }
.card:hover .card-media > :first-child { transform: scale(1.04); }
.card-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  transition: background .2s;
}
.card:hover .card-media::after { background: #ffffff12; }
.card-sub { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card-title { font-size: 16px; font-weight: 600; margin: 2px 0 4px; }
.card-meta { font-size: 13px; color: var(--muted); }
.price { font-weight: 600; }

.badge {
  position: absolute; z-index: 2; left: 10px; top: 10px;
  padding: 3px 8px; border-radius: 6px;
  background: #000000aa; font-size: 12px; font-weight: 600;
}
.badge-live { background: var(--live); }
.badge-accent { background: var(--accent); }
.add {
  position: absolute; z-index: 2; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: #000; font-size: 22px; font-weight: 600;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: .2s;
}
.card:hover .add, .add:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .add { opacity: 1; transform: none; } }

/* ---------- Drop de la semaine ---------- */
.drop {
  background: var(--bg-2); border-radius: 16px; padding: 28px;
  margin-bottom: 56px; border: 1px solid var(--border);
}
.drop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drop-head h2 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.gift {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); font-size: 16px;
}
.drop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.drop-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.drop-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.drop-flag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px;
  background: var(--accent); text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .15em;
}
.drop-info h3 { font-size: 18px; margin-bottom: 4px; }
.drop-info .price { color: var(--muted); margin-bottom: 18px; }

/* ---------- Fondateur ---------- */
.founder {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 72px;
}
.founder-photos {
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
  aspect-ratio: 5 / 4;
}
.founder-photos .ph { border-radius: var(--radius); overflow: hidden; --h: 265; }
.founder-photos .ph:nth-child(2) { --h: 190; }
.founder-photos .ph:nth-child(3) { --h: 330; }
.ph-tall { grid-row: span 2; }
.founder-photos .ph > img { position: absolute; inset: 0; object-position: 47% 30%; }
.founder-photos .ph:has(img)::after { display: none; }
.eyebrow {
  font-family: var(--display); font-weight: 700; letter-spacing: .2em; font-size: 13px;
  color: var(--accent-2); margin-bottom: 6px;
}
.display {
  font-family: var(--display); font-size: clamp(56px, 8vw, 112px); line-height: .9;
  background: linear-gradient(120deg, #fff 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 20px;
}
.lead { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.stats { list-style: none; display: flex; gap: 36px; margin-bottom: 32px; }
.stats strong { display: block; font-family: var(--display); font-size: 32px; }
.stats span { font-size: 13px; color: var(--dim); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Planning ---------- */
.schedule { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.day {
  background: var(--surface); border-radius: var(--radius); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 4px; border: 1px solid transparent;
}
.day-name { font-family: var(--display); font-weight: 700; letter-spacing: .1em; color: var(--dim); font-size: 13px; text-transform: uppercase; }
.day-time { font-family: var(--display); font-size: 24px; font-weight: 600; }
.day-game { font-size: 13px; color: var(--muted); }
.day.off { opacity: .45; }
.day.today { border-color: var(--accent); box-shadow: 0 0 0 3px #8b5cf633; }
.day.today .day-name { color: var(--accent); }

/* ---------- CTA newsletter ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 40px; border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, #8b5cf655, transparent 50%),
    radial-gradient(circle at 100% 100%, #22d3ee33, transparent 50%),
    var(--bg-2);
  border: 1px solid var(--border);
}
.cta h2 { font-family: var(--display); font-size: 28px; text-transform: uppercase; margin-bottom: 6px; }
.cta p { color: var(--muted); max-width: 480px; }
.newsletter { display: flex; gap: 10px; flex: none; }
.newsletter input {
  width: 260px; height: 44px; padding: 0 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit;
}
.newsletter input:focus { outline: 1px solid var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); padding: 40px 48px; border-top: 1px solid var(--border); }
.footer-top {
  max-width: var(--max); margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.copy { max-width: var(--max); margin: 0 auto; color: var(--dim); font-size: 13px; }

/* ---------- Panier ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: #000000aa;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer {
  position: fixed; z-index: 100; top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw); background: var(--bg-2);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.cart-open .overlay { opacity: 1; pointer-events: auto; }
.cart-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.cart-items { list-style: none; flex: 1; overflow-y: auto; padding: 12px 24px; }
.empty { color: var(--dim); padding: 24px 0; text-align: center; }
.cart-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-thumb { width: 52px; height: 64px; flex: none; border-radius: var(--radius-sm); overflow: hidden; }
.cart-thumb .ph-fill::after { display: none; }
.cart-item > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.cart-item > div:nth-child(2) span { color: var(--muted); }
.qty { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 99px; padding: 4px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; }
.qty button:hover { background: var(--surface-2); }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.total { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 200; left: 50%; bottom: 24px;
  transform: translate(-50%, 120px);
  background: #fff; color: #000; padding: 12px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; transition: transform .3s;
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .hero-list li { flex: 1 0 200px; }
  .track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  #streamTrack { grid-auto-columns: calc((100% - 20px) / 2); }
  .drop-grid { grid-template-columns: 1fr; }
  .drop-card { grid-template-columns: 220px 1fr; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder-photos { aspect-ratio: 16 / 9; }
  .schedule { grid-template-columns: repeat(4, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px 56px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .burger { display: grid; }
  .topnav {
    position: fixed; top: 64px; left: 0; right: 0; z-index: 60;
    flex-direction: column; padding: 12px 16px 20px; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .25s;
  }
  .nav-open .topnav { transform: none; }
  .topnav a { padding: 12px 14px; font-size: 16px; }
  .subbar { padding: 12px 16px; }
  .search { width: 100%; }
  .subnav { display: none; }
  html { scroll-padding-top: 130px; }

  .hero-main { aspect-ratio: 4 / 5; }
  .slide::before { background: linear-gradient(0deg, #000000dd 0%, #00000066 50%, transparent 80%); }
  .slide-content { left: 20px; right: 20px; bottom: 24px; }
  .hero-list li { flex-basis: 170px; }

  .track { grid-auto-columns: 62%; gap: 14px; }
  #streamTrack { grid-auto-columns: 82%; }
  .row-arrows { display: none; }

  .drop { padding: 20px 16px; }
  .drop-card { grid-template-columns: 130px 1fr; align-items: center; }
  .founder-photos { aspect-ratio: 4 / 3; }
  .schedule { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 24px; }
  .cta { padding: 28px 20px; }
  .newsletter { flex-direction: column; width: 100%; }
  .newsletter input { width: 100%; }
  .footer { padding: 32px 16px; }
}
