/* HockeySource.eu — design system v1
   Mobile-first, vanilla CSS, pas de build step. Palette derivee du logo. */

:root {
  --hs-blue: #3958A8;
  --hs-blue-dark: #2A4380;
  --hs-green: #3AB54A;
  --hs-green-dark: #2E9139;
  --hs-black: #16181C;
  --hs-grey-50: #F7F8FA;
  --hs-grey-100: #EEF0F3;
  --hs-grey-300: #D7DBE1;
  --hs-grey-600: #5B6472;
  --hs-white: #FFFFFF;

  --hs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hs-radius: 10px;
  --hs-radius-lg: 18px;
  --hs-shadow: 0 2px 10px rgba(22, 24, 28, 0.08);
  --hs-shadow-lg: 0 8px 30px rgba(22, 24, 28, 0.12);
  --hs-transition: 180ms ease;
  --hs-container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hs-black: #F2F3F5;
    --hs-white: #14161A;
    --hs-grey-50: #1B1E23;
    --hs-grey-100: #22262C;
    --hs-grey-300: #343A42;
    --hs-grey-600: #A7AEB8;
  }
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--hs-font);
  color: var(--hs-black);
  background: var(--hs-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

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

/* Respect reduced motion for every animation in the site */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Header ---------- */
.hs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hs-white);
  border-bottom: 1px solid var(--hs-grey-100);
}
.hs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.hs-header__logo { display: flex; align-items: center; gap: 8px; height: 44px; }
.hs-header__logo img { height: 100%; width: auto; }
.hs-header__nav { display: none; gap: 24px; font-weight: 600; font-size: 15px; }
.hs-header__actions { display: flex; align-items: center; gap: 14px; }
.hs-header__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hs-grey-50);
}
.hs-header__cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--hs-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

@media (min-width: 860px) {
  .hs-header__nav { display: flex; align-items: center; }
}

/* ---------- Dropdown "Marques" (details/summary natif, sans JS) ---------- */
.hs-dropdown { position: relative; }
.hs-dropdown summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hs-dropdown summary::-webkit-details-marker { display: none; }
.hs-dropdown summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--hs-transition);
}
.hs-dropdown[open] summary::after { transform: rotate(-135deg) translateY(2px); }
.hs-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--hs-white);
  border: 1px solid var(--hs-grey-100);
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow-lg);
  padding: 8px;
  display: grid;
  gap: 2px;
  min-width: 160px;
  z-index: 50;
}
.hs-dropdown__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.hs-dropdown__menu a:hover { background: var(--hs-grey-50); color: var(--hs-blue); }

/* Ferme le dropdown au clic extérieur (comportement natif <details> + petit assist CSS) */
.hs-dropdown[open] summary { color: var(--hs-blue); }

/* ---------- Buttons ---------- */
.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--hs-radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform var(--hs-transition), box-shadow var(--hs-transition), background var(--hs-transition);
}
.hs-btn:active { transform: scale(0.97); }
.hs-btn--primary { background: var(--hs-green); color: #fff; }
.hs-btn--primary:hover { background: var(--hs-green-dark); }
.hs-btn--secondary { background: var(--hs-blue); color: #fff; }
.hs-btn--secondary:hover { background: var(--hs-blue-dark); }
.hs-btn--ghost { background: transparent; color: var(--hs-blue); border: 2px solid var(--hs-blue); }
.hs-btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hs-hero {
  background:
    linear-gradient(100deg, var(--hs-blue-dark) 0%, rgba(42,67,128,0.55) 45%, rgba(42,67,128,0.15) 100%),
    url("/assets/img/products/adidas/worldcup-hero.jpg") center 30% / cover no-repeat;
  color: #fff;
  padding: 48px 0 64px;
}
.hs-hero__grid {
  display: grid;
  gap: 28px;
}
.hs-hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hs-hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.hs-hero h1 em { color: var(--hs-green); font-style: normal; }
.hs-hero p { font-size: 16px; opacity: 0.85; max-width: 480px; margin: 0 0 28px; }
.hs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 860px) {
  .hs-hero__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ---------- Section headings ---------- */
.hs-section { padding: 48px 0; }
.hs-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.hs-section__head h2 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.hs-section__head a { font-weight: 700; color: var(--hs-blue); font-size: 14px; white-space: nowrap; }

/* ---------- Product grid / card ---------- */
.hs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .hs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .hs-grid { grid-template-columns: repeat(4, 1fr); } }

.hs-card {
  background: var(--hs-white);
  border: 1px solid var(--hs-grey-100);
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  transition: transform var(--hs-transition), box-shadow var(--hs-transition);
  position: relative;
}
.hs-card:hover { transform: translateY(-3px); box-shadow: var(--hs-shadow-lg); }
.hs-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--hs-grey-50); overflow: hidden; }
.hs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.hs-card:hover .hs-card__media img { transform: scale(1.06); }
.hs-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--hs-green); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 999px;
  text-transform: uppercase;
}
.hs-card__badge--stock { background: var(--hs-black); }
.hs-card__body { padding: 14px; }
.hs-card__brand { font-size: 12px; font-weight: 700; color: var(--hs-grey-600); text-transform: uppercase; letter-spacing: 0.02em; }
.hs-card__name { font-size: 15px; font-weight: 700; margin: 4px 0 8px; }
.hs-card__price { display: flex; align-items: baseline; gap: 8px; }
.hs-card__price-now { font-size: 17px; font-weight: 800; color: var(--hs-black); }
.hs-card__price-was { font-size: 13px; color: var(--hs-grey-600); text-decoration: line-through; }

/* ---------- Footer ---------- */
.hs-footer { background: var(--hs-grey-50); border-top: 1px solid var(--hs-grey-100); padding: 40px 0 24px; margin-top: 48px; }
.hs-footer__grid { display: grid; gap: 28px; margin-bottom: 28px; }
.hs-footer h3 { font-size: 14px; font-weight: 800; margin: 0 0 12px; }
.hs-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hs-footer a { font-size: 14px; color: var(--hs-grey-600); }
.hs-footer a:hover { color: var(--hs-blue); }
.hs-footer__bottom { font-size: 13px; color: var(--hs-grey-600); border-top: 1px solid var(--hs-grey-100); padding-top: 20px; }
@media (min-width: 760px) { .hs-footer__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Size selector (radio caché + span stylée) ---------- */
.hs-size-radio + span { transition: border-color var(--hs-transition), background var(--hs-transition), color var(--hs-transition); }
.hs-size-radio:checked + span { border-color: var(--hs-blue); background: var(--hs-blue); color: #fff; }
.hs-size-radio:focus-visible + span { outline: 2px solid var(--hs-blue); outline-offset: 2px; }

/* ---------- Scroll-reveal (vanilla, no library) ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
