/* ===================================================== */
/* BASKETRUNNING.FR — Design system unifié                */
/* ===================================================== */

:root {
  --bg: #FAFAF7;
  --bg-soft: #F2F2EE;
  --bg-white: #FFFFFF;
  --ink: #13153C;
  --ink-soft: #43476B;
  --ink-muted: #8A8FAE;
  --lime: #D4FF3A;
  --hot: #FF4E00;
  --line: rgba(19,21,60,0.10);
  --line-strong: rgba(19,21,60,0.20);
}

*, *::before, *::after { margin:0; padding:0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4 { font-family: 'Archivo Black', 'Archivo', sans-serif; letter-spacing: -0.03em; line-height: 0.92; }
.archivo { font-family: 'Archivo', sans-serif; font-weight: 800; }
.display-xl { font-size: clamp(3.6rem, 16vw, 18rem); letter-spacing: -0.06em; line-height: 0.82; text-transform: uppercase; }
.display-lg { font-size: clamp(2.8rem, 11vw, 11rem); letter-spacing: -0.05em; line-height: 0.86; text-transform: uppercase; }
.display-md { font-size: clamp(2rem, 6vw, 4.5rem); letter-spacing: -0.04em; text-transform: uppercase; }
.eyebrow { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.italic-hot { color: var(--hot); font-style: italic; }
.small { font-size: .85rem; }

.uline { position: relative; display: inline-block; }
.uline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.16em;
  background: var(--lime); z-index: -1; transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.uline.in::after { transform: scaleX(1); }

/* Container */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Custom cursor — mix-blend-mode: difference rend le cursor toujours visible
   (s'inverse automatiquement selon le fond : sombre sur clair, clair sur sombre) */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate3d(-50%, -50%, 0); will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: #fff;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid #fff;
  background: transparent;
  transition: width .25s, height .25s, background .25s, border-color .25s;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  background: var(--lime);
  border-color: var(--lime);
}

/* Topbar */
.topbar {
  background: var(--ink); color: var(--bg);
  font-size: .78rem; text-align: center; padding: .55rem 1rem; letter-spacing: .05em;
}
.topbar strong { font-family: 'Archivo Black', sans-serif; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Archivo Black', sans-serif; font-size: 1.4rem; letter-spacing: -.04em; }
.logo__hot { color: var(--hot); }
.logo--footer { color: var(--bg); font-size: 1.4rem; }
.site-nav { display: flex; gap: 28px; font-weight: 600; font-size: .92rem; align-items: center; }
.site-nav a:hover { color: var(--hot); }
.site-nav > a { position: relative; transition: color .15s; }

/* Dropdown desktop */
.nav-dropdown { position: relative; }
.nav-dropdown__btn {
  background: transparent; border: 0; padding: 0; cursor: none;
  font-family: inherit; font-size: inherit; font-weight: 600;
  color: inherit;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s;
}
.nav-dropdown__btn:hover { color: var(--hot); }
.nav-dropdown__btn svg { transition: transform .2s; }
.nav-dropdown:hover .nav-dropdown__btn svg { transform: rotate(180deg); }
.nav-dropdown__menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 360px;
  background: var(--bg, #FAFAF7);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: all .18s ease;
  z-index: 100;
}
.nav-dropdown__menu::before {
  content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-bottom-color: var(--line, rgba(0,0,0,.08));
}
.nav-dropdown__menu::after {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-bottom-color: var(--bg, #FAFAF7);
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  max-height: 60vh; overflow-y: auto;
}
.nav-dropdown__item {
  padding: 10px 14px;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 2px;
  transition: background .12s;
  text-decoration: none;
  color: var(--ink);
}
.nav-dropdown__item:hover {
  background: var(--lime);
  color: var(--ink);
}
.nav-dropdown__item strong {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px; letter-spacing: -.005em;
  color: var(--ink);
}
.nav-dropdown__item span {
  font-size: 11px;
  color: var(--ink-soft, #666);
  line-height: 1.3;
  font-weight: 400;
}
.nav-dropdown__item:hover span { color: var(--ink); opacity: .8; }
@media (max-width: 700px) {
  .nav-dropdown__inner { grid-template-columns: 1fr; }
}

/* Burger */
.burger {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
  transition: background .2s, border-color .2s;
}
.burger:hover { background: var(--ink); }
.burger:hover span { background: var(--bg); }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s, background .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--ink); color: var(--bg); z-index: 49;
  display: none; flex-direction: column;
  opacity: 0; transition: opacity .3s;
  padding: 88px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu nav {
  display: flex; flex-direction: column;
  gap: 32px;
  max-width: 440px; margin: 0 auto;
  width: 100%;
}
.mobile-menu__group { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__group-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu__group a {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--bg);
  padding: 8px 0;
  transition: color .15s, transform .15s;
  display: inline-block;
}
.mobile-menu__group a:hover,
.mobile-menu__group a:active {
  color: var(--lime);
  transform: translateX(4px);
}
.mobile-menu-cta {
  margin-top: 16px;
  background: var(--lime); color: var(--ink) !important;
  padding: 16px 24px;
  border-radius: 999px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  text-align: center;
  letter-spacing: -.01em;
  text-transform: none !important;
}
.mobile-menu-cta:hover { background: var(--bg); color: var(--ink) !important; transform: none; }

/* Buttons */
.btn { position: relative; overflow: hidden; padding: 18px 32px; font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; border: 0; cursor: none; }
.btn-sm { padding: 12px 22px; font-size: .85rem; border-radius: 999px; }
.btn-dark { background: var(--ink); color: var(--bg); transition: background .3s, transform .3s; }
.btn-dark:hover { background: var(--hot); }
.btn-lime { background: var(--lime); color: var(--ink); transition: background .3s, transform .3s; }
.btn-lime:hover { background: var(--ink); color: var(--lime); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); transition: background .3s, color .3s; }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.magnet { display: inline-flex; will-change: transform; }

/* Hero */
.hero { position: relative; min-height: 100vh; padding: 48px 24px; overflow: hidden; }
.hero__inner { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 96px); }
.hero__floating-eyebrow { position: absolute; top: 130px; left: 32px; z-index: 5; display: flex; align-items: center; gap: 10px; }
.hero__floating-eyebrow .dot { width: 10px; height: 10px; background: var(--lime); border-radius: 50%; animation: pulse 2s infinite; }
.hero__floating-rating { position: absolute; top: 130px; right: 32px; z-index: 5; text-align: right; }
.vert-label { writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'Archivo Black', sans-serif; font-size: .8rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-soft); position: absolute; top: 50%; right: 24px; transform: translateY(-50%) rotate(180deg); z-index: 5; }
.hero-ghost-run { position: absolute; left: -4vw; bottom: -6vw; font-family: 'Archivo Black', sans-serif; font-size: clamp(10rem, 30vw, 42rem); line-height: .78; color: transparent; -webkit-text-stroke: 2px rgba(19,21,60,0.05); letter-spacing: -.06em; pointer-events: none; z-index: 1; }
.hero-title { position: relative; z-index: 3; max-width: 1400px; margin: 0 auto; width: 100%; text-align: left; pointer-events: none; }
.hero-title h1 { font-size: clamp(1.8rem, 3.6vw, 3.6rem); letter-spacing: -0.03em; line-height: 0.95; text-transform: uppercase; max-width: 46%; }
.hero-bottom-bar { position: absolute; bottom: 32px; left: 32px; right: 32px; z-index: 4; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; }
.hero-desc { max-width: 380px; font-size: clamp(.95rem,1.1vw,1.05rem); color: var(--ink-soft); line-height: 1.5; }
.hero-stats { display: flex; gap: 24px; align-items: center; }
.hero-stats .counter, .hero-stats .archivo { font-family: 'Archivo Black', sans-serif; font-size: 1.8rem; line-height: 1; }
.hero-stats .eyebrow { margin-top: 4px; font-size: .6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Shoe stage : flex container qui centre l'inner */
.shoe-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; }
.shoe-stage__inner { position: relative; width: min(62vw, 72vh); height: min(62vw, 72vh); }
.shoe-orbit { position: absolute; inset: 5%; border: 1.5px dashed var(--line-strong); border-radius: 50%; pointer-events: none; opacity: 0.6; animation: orbit 32s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.shoe-glow { position: absolute; inset: -10%; pointer-events: none; z-index: -1; background: radial-gradient(45% 45% at 50% 55%, rgba(212,255,58,0.55) 0%, transparent 60%), radial-gradient(40% 40% at 60% 40%, rgba(255,78,0,0.35) 0%, transparent 60%); filter: blur(40px); }
#shoe-poster, #shoe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
#shoe-poster { object-fit: contain; transition: opacity .4s; }
#shoe-canvas { display: block; opacity: 0; transition: opacity .4s; }

/* Disclosure */
.disclosure { background: var(--ink); color: var(--bg); text-align: center; padding: 14px 24px; font-size: .78rem; letter-spacing: .02em; }

/* Marquee */
.marquee-section { padding: 24px 0; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; overflow: hidden; }
.marquee { display: flex; gap: 7rem; padding: 1rem 0; animation: scrollX 30s linear infinite; align-items: center; }
.marquee-fast { animation-duration: 18s; }
.marquee-slow { animation-duration: 45s; }
.marquee-reverse { animation-direction: reverse; }
.marquee.lime { background: var(--lime); border-block: 2px solid var(--ink); }
.marquee span {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.02em; text-transform: uppercase;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  transition: color .3s, -webkit-text-stroke .3s;
}
.marquee.lime span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee span:hover { color: var(--hot); -webkit-text-stroke: 1.5px transparent; }
.dot-hot { color: var(--hot); -webkit-text-stroke: 0; }
.dot-hot-fill { color: var(--hot); -webkit-text-stroke: 0; }
.dot-lime-fill { color: var(--lime); -webkit-text-stroke: 0; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* Giant divider */
.giant-divider { overflow: hidden; padding: 60px 0; position: relative; width: 100%; max-width: 100vw; }
.giant-divider-track { display: flex; width: 100%; overflow: hidden; }
.outline-marquee { display: flex; gap: 8rem; padding: 0; animation: scrollX 35s linear infinite; white-space: nowrap; align-items: center; }
.outline-marquee.reverse { animation-direction: reverse; animation-duration: 50s; }
.outline-marquee span {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(4rem, 14vw, 14rem); letter-spacing: -0.05em; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 2px var(--ink); white-space: nowrap;
}
.outline-marquee.hot span { -webkit-text-stroke-color: var(--hot); }
.outline-marquee.lime span { -webkit-text-stroke-color: var(--lime); }

/* Sections */
.section { padding: 140px 24px; }
.section--dark { background: var(--ink); color: var(--bg); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 60px; }
.section__subtitle { max-width: 420px; color: var(--ink-soft); font-size: 1.05rem; }
.section--dark .section__subtitle { color: rgba(255,255,255,.7); }

/* Cards grid */
.cards-grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Product card */
.card { padding: 28px; border-radius: 8px; background: var(--bg-white); border: 1px solid var(--line); transition: border-color .3s, transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.card:hover { border-color: var(--ink); box-shadow: 8px 8px 0 var(--ink); transform: translate(-4px, -4px); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; }
.card__rating { display: flex; align-items: center; gap: 6px; font-family: 'Archivo Black', sans-serif; font-size: 1.1rem; }
.badge { padding: 6px 12px; font-family: 'Archivo Black', sans-serif; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.card__media { display: flex; align-items: center; justify-content: center; margin-top: 24px; aspect-ratio: 5/3; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.card__media img { max-width: 90%; max-height: 90%; object-fit: contain; }
.card__title { margin-top: 24px; font-size: 1.3rem; line-height: 1.2; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--hot); }
.card__verdict { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }
.card__foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.price { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; }

/* Card categorie */
.card-cat { padding: 32px; display: block; border-radius: 8px; background: var(--bg-white); border: 1px solid var(--line); transition: border-color .3s, transform .3s, box-shadow .3s; }
.card-cat:hover { border-color: var(--ink); box-shadow: 8px 8px 0 var(--ink); transform: translate(-4px,-4px); }
.card-cat h3 { font-size: 1.4rem; margin-top: 16px; }
.card-cat p { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }

/* Step num (process) */
.step-num { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg); display: flex; align-items: center; justify-content: center; font-family: 'Archivo Black', sans-serif; font-size: 2rem; }
.step-num.lime { background: var(--lime); }
.step-num.hot { background: var(--hot); color: var(--bg); }

/* Process grid */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; margin-top: 80px; }
.section--dark .process-grid h3 { color: var(--bg); margin-top: 24px; font-size: 1.4rem; }
.section--dark .process-grid p { margin-top: 12px; font-size: .9rem; color: rgba(255,255,255,.7); }

/* Tilt + reveal */
.tilt { transform-style: preserve-3d; transition: transform .15s ease; will-change: transform; }
.reveal { will-change: transform, opacity; }

/* Split words for hero intro */
.split-line { display: block; overflow: visible; line-height: inherit; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; will-change: transform; }

/* Empty state */
.empty-state { grid-column: 1/-1; background: var(--bg-soft); border: 1.5px dashed var(--line-strong); border-radius: 8px; padding: 48px 32px; text-align: center; }
.empty-state h3 { font-size: 1.5rem; margin: 12px 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--bg); margin-top: 80px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; padding: 80px 24px 32px; }
.site-footer__bottom { padding: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .78rem; color: rgba(255,255,255,.5); }
.site-footer__bottom a:hover { color: var(--lime); }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-list a:hover { color: var(--lime); }

/* Animations */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

/* Focus accessible */
*:focus-visible { outline: 3px solid var(--hot); outline-offset: 4px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body, a, button { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Mobile */
@media (max-width: 900px) {
  .grid-3, .grid-4, .process-grid, .site-footer__grid { grid-template-columns: 1fr !important; }
  .site-nav { display: none !important; }
  .header-cta-desktop { display: none !important; }
  .burger { display: flex !important; }
  .hero { min-height: auto !important; padding: 24px 16px 32px !important; display: flex; flex-direction: column; }
  .hero__floating-eyebrow, .hero__floating-rating, .vert-label, .hero-ghost-run { display: none !important; }
  .shoe-stage { position: relative !important; inset: auto !important; width: 92vw !important; height: 92vw !important; margin: 8px auto 24px !important; }
  .shoe-stage__inner { width: 100% !important; height: 100% !important; }
  .hero-title { position: relative !important; mix-blend-mode: normal !important; text-align: left !important; margin-bottom: 16px; order: 1 !important; }
  .hero-title h1 { font-size: clamp(2.5rem, 12vw, 4.5rem) !important; max-width: 100% !important; mix-blend-mode: normal !important; }
  .shoe-stage { order: 2 !important; }
  .hero-bottom-bar { position: relative !important; inset: auto !important; flex-direction: column !important; align-items: flex-start !important; gap: 24px !important; margin-top: 16px; order: 3 !important; }
  .hero-stats > div .archivo, .hero-stats > div .counter { font-size: 1.4rem !important; }
  .display-xl { font-size: clamp(2.5rem, 14vw, 5rem) !important; }
  .display-lg { font-size: clamp(2.2rem, 11vw, 4.5rem) !important; }
  .section { padding: 80px 24px !important; }
}
